Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Flexform › Flexform pagination not working.
New Landing › How can we help? › Themeforest Theme Support › Flexform › Flexform pagination not working.
- This topic has 14 replies, 6 voices, and was last updated 8 years by Mohammad – SUPPORT.
-
Posted in: Flexform
-
August 25, 2014 at 10:50 am #103755
Hey Guys,
I’ve just noticed that the pagination is not working on my site.
When I click the links it will navigate to a paginated page but will still show the same list of posts.Any ideas?
August 25, 2014 at 10:55 pm #103929Hi,
Will have to forward this one to the development team.
-Rui
August 25, 2014 at 11:01 pm #103932Hi @irishmark
Pagination issues are almost all of the time due to issues with htaccess setup. Can you check this / try removing all htaccess code and checking it again to test it?
– Ed
August 26, 2014 at 5:05 pm #104260There is only one htaccess file with the standard code for permalink changes:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>I deleted this rule and reset permalinks back to default but am still getting the same issue.
I’ve now put the permalinks back to “postname” as I want them and the htaccess file has been updated as expected.
August 26, 2014 at 9:32 pm #104315Checked now, and working fine?
– Ed
August 26, 2014 at 9:32 pm #104316Checked now, and working fine?
– Ed
August 27, 2014 at 6:46 am #104406Sadly still got the same issue.
The removal of the htaccess did nothing to change it.
August 27, 2014 at 12:20 pm #104487Hi,
I have resolved the issue so please check.
Code Remarks-: Edited blog.php at /includes/page-builder/lib/shortcodes/Find this code:- $blog_args = array( 'post_type' => 'post', 'post_status' => 'publish', 'paged' => $paged, 'category_name' => $category_slug, 'posts_per_page' => $item_count, 'offset' => $offset ); Changed to -: $blog_args = array( 'post_type' => 'post', 'post_status' => 'publish', 'paged' => $paged, 'category_name' => $category_slug, 'posts_per_page' => $item_count, );
Thanks
August 27, 2014 at 3:07 pm #104563Hi Mohammad,
This does not help as it solves one problem but causes another.
It has fixed the pagination but has broken the offset.
On a previous thread (http://support.swiftideas.net/forums/topic/changing-the-standard-blog-layout/) I managed to enable offset posts which is key to what I’m trying to achieve with this page.
August 27, 2014 at 10:35 pm #104692Hi Mark,
I’m confused. Checking your site now, if I click page 2, I get this link: http://sostest.swordofthespirit.net/articles/page/2/ ?
– Ed
February 18, 2016 at 6:56 pm #250509I have the same problem as well on my blog page – the pagination doesn’t work. If you click page 2, then it will take you to page 2 – but will still show the same posts that are on page 1. For example, I currently have 6 posts on my blog. If I set the blog to only show 5 posts and pagination, then when you click on page 2 it still just shows the last 5.
I flushed the htaccess file but that doesn’t change it. It would be great if this problem could be fixed.
February 19, 2016 at 12:24 am #250542Hi Swiftideas Team,
I just realized that I do have the same problem at http://www.foodfreaks.com
Any advice?
best regards
ChristianFebruary 19, 2016 at 7:34 am #250575Hi,
Please edit blog.php at /includes/page-builder/lib/shortcodes/.Find this code:-
$blog_args = array( 'post_type' => 'post', 'post_status' => 'publish', 'paged' => $paged, 'category_name' => $category_slug, 'posts_per_page' => $item_count, 'offset' => $offset );
Changed to -:
if($paged!=1){ $off = ($paged-1)*$item_count; $offset = $offset + $off; } $blog_args = array( 'post_type' => 'post', 'post_status' => 'publish', 'paged' => $paged, 'category_name' => $category_slug, 'posts_per_page' => $item_count, 'offset' => $offset );
Thanks
MohammadFebruary 19, 2016 at 11:04 am #250603Thanks for that – it worked. Much appreciated.
Will that correction end up in the next version of Flexform?
February 19, 2016 at 11:11 am #250608Hi,
You most welcome and glad to help you.
Thanks
Mohammad -
Posted in: Flexform
You must be logged in and have valid license to reply to this topic.