Tagged: blog posts, pagination
-
AuthorPosts
-
December 10, 2015 at 1:45 pm #550361
On the home page of our site we are using the blog posts feature to pull articles from a specific category. The posts are paginated but do not update when you click to the next page. It still only displays the same 4 posts. I am running the current version of both the theme and wordpress. Here is a link to view the site:
December 10, 2015 at 2:12 pm #550381Hey reggiescott!
Can you please try de-activating all active plugins and check if that helps?
If not, please create a temporary admin login and post it here privately.Cheers!
YigitDecember 10, 2015 at 2:29 pm #550395Tried that. Same results. I will send you login info privately. Thanks for the fast reply!
December 10, 2015 at 2:31 pm #550404Sorry here it is:
December 10, 2015 at 3:36 pm #550459Hi!
Our devs reported that issue is WP 4.4 related. They are making the changes and will release an update this week.
Regards,
YigitDecember 14, 2015 at 7:24 pm #552570Hi Yigit,
Any progress on resolving this? Or is there a patch we can put in place at this time? We really need to get our blog paginating again.
Thanks,
December 15, 2015 at 1:43 pm #552995Our development team has resolved the issue for our site!
in File : enfold\config-templatebuilder\avia-shortcodes\blog.php Line No: 343
Change existing code to://$params['offset'] = 0; $params['offset'] = ( $page - 1 ) * $params['items'];
Here it is working on our site:
http://www.buenavistanj.comShare with the masses!
December 15, 2015 at 3:28 pm #553069December 15, 2015 at 4:55 pm #553155So this fixed it on my home page but not my inside news feed page.
http://www.buenavistanj.com/news-room/
@Yigit do you think you could lend an insight as to why its working on our homepage but not this one?December 16, 2015 at 4:05 am #553429Hi reggiescott,
It seems the offset is breaking the pagination.
See the codex (https://codex.wordpress.org/Class_Reference/WP_Query)
‘offset (int) – number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination (Click here for a workaround). The ‘offset’ parameter is ignored when ‘posts_per_page’=>-1 (show all posts) is used.”
(link for work around: https://codex.wordpress.org/Making_Custom_Queries_using_Offset_and_Pagination)So if I comment out the offset param in the query args on line 356, the pagination now works for me.
- This reply was modified 8 years, 11 months ago by tawheedkader.
December 17, 2015 at 5:10 am #554180January 25, 2016 at 2:31 pm #571355It looks like the pagination has broken again. Not sure if it was a latest update to WP or not. But I am getting the same issue again on the home page. I am running the latest version of EnFold as well as the latest version of WP 4.4.1
January 26, 2016 at 8:03 pm #572327Hi!
please refer to this: https://kriesi.at/support/topic/pagination-not-working-after-wordpress-4-4-1-and-enfold-3-4-7/#post-565212
Cheers!
Andy -
AuthorPosts
- You must be logged in to reply to this topic.