Support » Plugin: Custom Content Type Manager » [Plugin: Custom Content Type Manager] Issue After Upgrade to–paging links no longer hyperli

  • Resolved new_B



    Thanks for the awesome plugin.

    I have a custom template that spits out a list (summary view) of custom posts. It includes a call to get_pagination_links().

    => After upgrading this plugin, the pagination is no longer hyperlinked (i.e., just the page numbers are appearing). Also the styling is broken.

    I have disabled the Summarize Posts plugin as it’s now in CCTM. Is there any upgrade step I am missing to make pagination work again?

    It would be helpful to include upgrade steps required for future release in the readme.txt file as things broke due to functions getting deleted, changed, etc. in the updates.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Any suggestions for solving this? Thanks in advance.

    Plugin Contributor fireproofsocks


    How are you using pagination? Paste your code here. SummarizePosts is included in CCTM.

    There is a page in the wiki on how to use the CCTM_Pagination class with several examples:

    If there’s a bug with something in the class, then please file it in the bug tracker: I’m unable to frequently monitor the forums.


    The following are parts of the code

    $cat = get_term_by('name', $catname, 'category');
     $args = array();
     $args['taxonomy'] = 'category';
     $args['taxonomy_slug'] = $cat->slug;
     $args['limit'] = get_option('posts_per_page');
     $args['paginate'] = true;
     $args['orderby'] = 'post_title';
     $args['order'] = 'ASC';
     $args['exclude'] = $wp_query->post->ID;
     $Q = new GetPostsQuery($args);
     $results = $Q->get_posts($args);

    print $Q->get_pagination_links();

    => The page numbers are no longer hyperlinked. It looks like the following

    1 2 3 Next > Last >>
    Page 1 of 3

    Plugin Contributor fireproofsocks


    It’s more helpful to post the HTML of the output, not just what it looks like.

    I think you just need to change the formatting templates used on the pagination output. Again, see examples on the wiki: specifically those at the bottom that show how to customize the output — there should be usable defaults in place, but you can override them or set them verbosely to see if that alters the behavior.

    Note that this is no longer a valid function:


    It became too problematic to support both types of output formats internally in the class so it was removed several versions ago.


    The HTML code generated is

    <div id="pagination">&nbsp;<span class="post_selector_pagination_active_page">1</span>&nbsp;&nbsp;<span class="linklike" title="2" onclick="javascript:change_page(2);">2</span>&nbsp;&nbsp;<span class="linklike" title="3" onclick="javascript:change_page(3);">3</span>&nbsp;&nbsp;<span class="linklike" onclick="javascript:change_page(2);">Next &rsaquo;</span>&nbsp;<span class="linklike" onclick="javascript:change_page(3);" >Last &raquo;</span><br/>
    				Page 1 of 3

    When you say that the following is no longer a valid function. What has/should it be replaced by?


    Also, would it mean customizing the TPLs for the pages to become hyperlinked again with the current version of your plugin?

    Thanks again.

    Plugin Contributor fireproofsocks


    You can delete that one line: output is always an array. For example, see the wiki page I referenced above — that’s why it’s there.

    Thanks. Just an update–the issue may have been a bug. Updating the plugin to the latest version made the pages hyperlinked again.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Custom Content Type Manager] Issue After Upgrade to–paging links no longer hyperli’ is closed to new replies.