Tagged: x
-
AuthorPosts
-
June 30, 2016 at 12:09 pm #1066977
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!June 30, 2016 at 12:09 pm #1066979This reply has been marked as private.June 30, 2016 at 7:37 pm #1067532Hi 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 / passwordDon’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!
July 4, 2016 at 12:05 pm #1071768This reply has been marked as private.July 4, 2016 at 7:29 pm #1072119Hi 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.
July 5, 2016 at 5:46 pm #1073787thanks 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!
July 6, 2016 at 4:41 am #1074446Hi There,
I’ve just updated the code and the pagination appears.
Please take a look at your website.
Best Regards,
Your ThemeCo Team.July 7, 2016 at 6:44 pm #1077108Hey 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,
JesseJuly 8, 2016 at 1:20 am #1077572Hey 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.
July 8, 2016 at 11:47 am #1078121Hi There,
I added this function:
<?php pagenavi(); ?>
after<?php endif; ?>
Hope it helps 🙂
August 10, 2016 at 6:04 pm #1126294This reply has been marked as private.August 11, 2016 at 12:38 am #1126758Hello 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.
August 15, 2016 at 3:58 pm #1132484Hi 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!
August 16, 2016 at 12:18 am #1132999Hi,
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
August 16, 2016 at 1:28 pm #1133984Hi 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!
-
AuthorPosts