Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1066977

    NinjaTeX
    Participant

    Hello,

    I’m not sure if this is in the scope of your support but I hope so an wanted to check.

    I have created a custom post type and am using the archive page like a blog feed for release notes.

    problem I’m having is it shows 10 posts then no more and there is no pagination at the bottom.

    What do I need to do to add pagination to that page?
    Thanks!

    #1066979

    NinjaTeX
    Participant
    This reply has been marked as private.
    #1067532

    Rad
    Moderator

    Hi there,

    Thanks for posting in.

    The posts per page is controlled by global settings in Admin > Settings > Reading. Though, I like to see your setup first.

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    I can’t promise any solution, but if it’s simple, why not 🙂

    Thanks!

    #1071768

    NinjaTeX
    Participant
    This reply has been marked as private.
    #1072119

    Lely
    Moderator

    Hi There,

    Thank you for the credentials. This needs custom template. Please check this thread:https://community.theme.co/forums/topic/using-wp_query-to-display-only-specific-taxonomy-terms-from-a-custom-post-type/#post-317214

    From the suggested code above look for this part:

        $args = array(
        
          'post_type' => 'customposttype',
          'tax_query'  => array(
            array(
              'taxonomy' => 'cpt_category',
              'field'    => 'slug',
              'terms'    => 'category-term-1', 'category-term-2',
            ),
          ),
          'posts_per_page' => 10
        
        );

    Update to this:

        $args = array(
        
          'post_type' => 'customposttype',
          'posts_per_page' => 10
        
        );

    We don’t need tax query and please update customposttype to your own custom post type.

    Hope this helps.

    #1073787

    NinjaTeX
    Participant

    thanks I really appreciate the help!

    I haven’t quite been able to get it working yet though.

    I’ve added:

    <?php
    
    $paged    = ( is_front_page() ) ? get_query_var( 'page' ) : ( ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1 );
    
    $args = array(
        
          'post_type' => 'releasenotes',
          'posts_per_page' => 10
        
        );
    ?>

    to my archive template x-child/themes/archive-releasenotes.php

    Not sure what I’m missing at this point.

    Thanks for any more help you can provide!

    #1074446

    Thai
    Moderator

    Hi There,

    I’ve just updated the code and the pagination appears.

    Please take a look at your website.

    Best Regards,
    Your ThemeCo Team.

    #1077108

    NinjaTeX
    Participant

    Hey Thanks so much for fixing that!

    Can you please let me know exactly what you did you I can duplicate on another custom post archive page?

    Thanks so much you guys really rock!

    Cheers,
    Jesse

    #1077572

    Rue Nel
    Moderator

    Hey Jesse,

    I will forward you to Thai. He is the one you have fixed the issue in your site. He will respond to you as soon as he gets online.

    For the meantime if you need anything else we can help you with, don’t hesitate to open another thread.

    Regards.

    #1078121

    Thai
    Moderator

    Hi There,

    I added this function: <?php pagenavi(); ?> after <?php endif; ?>

    Hope it helps 🙂

    #1126294

    NinjaTeX
    Participant
    This reply has been marked as private.
    #1126758

    Rue Nel
    Moderator

    Hello There,

    Thank you for the detailed clarifications! I am another staff checking on this thread. I have checked the media archive page and I am seeing the pagination. Please see the image below:

    Are you using CloudFlare, CDN or may have installed a caching plugin like WordFence, W3 Total Cache or WP Super Cache? Please keep in mind that after doing every updates and making any changes, always remember to clear all caches when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

    Please let us know how it goes.

    #1132484

    NinjaTeX
    Participant

    Hi thanks for the reply.

    I do have some caching going on and I’ve flushed the cache and cleared by browser cache and still I don’t see the navigation at the bottom of https://x.dev.tstest.ca/resources/media/
    I’ve tried in FF Chrome and Safari and no navigation buttons at the bottom like https://x.dev.tstest.ca/support/release-notes/

    I do see the buttons flash briefly at the top of the page when it is loading but then they disappear when the page content loads..

    I wonder does it have something to do with the masonry grid on the media page??

    Thanks!

    #1132999

    Paul R
    Moderator

    Hi,

    I can see ten posts is being displayed in this page – https://x.dev.tstest.ca/resources/media/

    Kindly note that pagination will not appear if all the posts is already displayed.

    May I know how many posts you have set to be in the media category.

    Thanks

    #1133984

    NinjaTeX
    Participant

    Hi thanks,

    Yes I know there will be no pagination if all the posts are there.

    There are 12 media posts. I haven’t changed any setting as to how many display.

    Like the Release notes archive page I’d love to get the Media Posts to paginate.

    I don’t get what is causing the Media page to not work like the release notes page.

    If you can help me out that would be really great!

    Thanks!