Category Pagination

Viewing 3 posts - 1 through 3 (of 3 total)
#4124

crypha
Member

Just wondering if there is anyway of turning off the pagination created within the categories. At the moment my categories only show 10 items before it creates a new page.

Is there a way of increasing this number or turning it off all together?

Cheers,

C

#4163

Shahjada
Keymaster

not possible yet 🙂

#9125

iainkerr01
Member

Here’s a temporary solution which I have been using, but remember, you will have to make this change after every update of this Plugin. Hope it helps.

To change the default Page Break on Download Manager from 10 to (say) 15

Editing download-manager/download-manager.php (active)

In Plugins – Installed Plugins,
Click on ‘Download Manager – Edit

Scroll down to this function.

function wpdm_embed_category($id){
global $wpdb, $current_user, $post, $wp_query;
$postlink = get_permalink($post->ID);
get_currentuserinfo();

$user = new WP_User(null);
$categories = maybe_unserialize(get_option(“_fm_categories”,true));
$category = $categories[$id];
$total = $wpdb->get_var(“select count(*) from ahm_files where category like ‘%\”$id\”%'”);

$item_per_page = 15; Default was 10 items($total);
$pag->limit($item_per_page);
$pag->currentPage($page);

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Category Pagination’ is closed to new replies.