Timeline for Pagination on Custom Post Type: 404 Error
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 10, 2016 at 20:53 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 10, 2016 at 9:53 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 10, 2016 at 20:55 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 14, 2015 at 1:01 | answer | added | Brad Dalton | timeline score: 0 | |
Jun 25, 2013 at 19:48 | answer | added | tnog | timeline score: 1 | |
Jun 25, 2013 at 3:34 | comment | added | tnog | helgatheviking, Milo. Thank you both for your insights. I'm building a custom gallery display for the CPT. Though, I think I understand more clearly the nature of why the custom query wasn't working. I think what I'll do is simply assign this to a page as a custom template. A lot more work seems to be involved in order to override the default query. | |
Jun 25, 2013 at 1:50 | comment | added | Milo |
what @helgatheviking said. the issue is likely that the main query for your archive is loading the default number of posts, and that number exceeds the number of posts in that cpt, so the main query has no second page. there's no reason to run a custom query in the template, use the pre_get_posts action if you want to modify parameters of the archive main query, like posts_per_page .
|
|
Jun 25, 2013 at 1:19 | comment | added | helgatheviking | Is there a reason you need a custom query there instead of just using the default for the CPT archive? | |
Jun 25, 2013 at 1:04 | history | asked | tnog | CC BY-SA 3.0 |