New Landing How can we help? Themeforest Theme Support Flexform Flexform pagination not working.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Posted in: Flexform
  • #103755
    irishmark
    Member
    Post count: 19

    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?

    #103929
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Will have to forward this one to the development team.

    -Rui

    #103932
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @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

    #104260
    irishmark
    Member
    Post count: 19

    There 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.

    #104315
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Checked now, and working fine?

    – Ed

    #104316
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Checked now, and working fine?

    – Ed

    #104406
    irishmark
    Member
    Post count: 19

    Sadly still got the same issue.

    The removal of the htaccess did nothing to change it.

    #104487
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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

    #104563
    irishmark
    Member
    Post count: 19

    Hi 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.

    #104692
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi 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

    #250509
    dankaufman
    Member
    Post count: 9

    I 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.

    #250542
    foodfreaks
    Member
    Post count: 46

    Hi Swiftideas Team,

    I just realized that I do have the same problem at http://www.foodfreaks.com

    Any advice?
    best regards
    Christian

    #250575
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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
    Mohammad

    #250603
    dankaufman
    Member
    Post count: 9

    Thanks for that – it worked. Much appreciated.

    Will that correction end up in the next version of Flexform?

    #250608
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome and glad to help you.
    Thanks
    Mohammad

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register