theredborough
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Pagination for Page For CatalogueOk figured this out from here https://codex.www.ads-software.com/Pagination#Adding_the_.22paged.22_parameter_to_a_query
Forum: Fixing WordPress
In reply to: Pagination for Page For Catalogue$prevID = $pages[$current-1];
$nextID = $pages[$current+1];Ok, I need to change this to 9
Am I correct that I need to change this part?
$current = array_search(get_the_ID(), $pages); $prevID = $pages[$current-1]; $nextID = $pages[$current+1];
I feel like I need make it behave like a loop to show the next set of child pages.
Forum: Fixing WordPress
In reply to: Next & Previous Button Don't Show Next EntriesThank you so much alchymyth! That made it work now. I been figuring it out for days. Thank you again.
Forum: Fixing WordPress
In reply to: Next & Previous Button Don't Show Next EntriesOk I changed this
<?php query_posts("posts_per_page=3"); ?>
to this<?php query_posts('pre_get_posts'); ?>
. Which is a great help as I can just change the number of post in the settings.But the next and previous button still don’t show the next/previous set of entries. Do I need to add a function for this?
Forum: Fixing WordPress
In reply to: Next & Previous Button Don't Show Next Entries<?php query_posts("posts_per_page=3"); ?>
If I don’t use this line then my posts will also not show. It will give me the content of the blog page which is just Blog and the usual meta (posted by, date and such).
Forum: Fixing WordPress
In reply to: Next & Previous Button Don't Show Next EntriesI am using my own theme. I new at building my own WordPress template. I used codes from 2 video tutorials about WordPress.
I do think that the problem is in this line though
<?php query_posts(“posts_per_page=3”); ?>. I just can’t figure it out.My problem is that whenever a click on the next and previous entries button, it just show the same set of entries rather than showing another set of entries.