New Landing How can we help? Themeforest Theme Support Flexform NexT Previous portfolio category

Viewing 14 posts - 1 through 14 (of 14 total)
  • Posted in: Flexform
  • #12149
    abcsrl
    Member
    Post count: 56

    Hello,
    i need to have next and previous pagination in portfolio section on same category
    now i have next and previous on all category…

    in single-portfolio.php at 235 row i have this:

    <div class=”nav-previous”><?php next_post_link(__(‘<i class=”icon-angle-left”></i> <span class=”nav-text”>%link</span>’, ‘swiftframework’), ‘%title’ ); ?></div>
    <div class=”nav-next”><?php previous_post_link(__(‘<span class=”nav-text”>%link</span><i class=”icon-angle-right”></i>’, ‘swiftframework’), ‘%title’ ); ?></div>

    i have tried to add TRUE

    <div class=”nav-previous”><?php next_post_link(__(‘<i class=”icon-angle-left”></i> <span class=”nav-text”>%link</span>’, ‘swiftframework’), ‘%title’, TRUE ); ?></div>
    <div class=”nav-next”><?php previous_post_link(__(‘<span class=”nav-text”>%link</span><i class=”icon-angle-right”></i>’, ‘swiftframework’), ‘%title’, TRUE ); ?></div>

    but now seem i dont have any next prev

    how it is possible have this working on same category and not to all category?

    #12453
    Cosmin – SUPPORT
    Member
    Post count: 3851

    Hi,

    Try a 1 instead of TRUE. Reference: http://codex.wordpress.org/Function_Reference/next_post_link

    Regards,
    ————————————————————————————————————

    Cosmin – Support

    #12458
    abcsrl
    Member
    Post count: 56

    Hello Cosmin
    tried also 1 instead of TRUE and same problem (no prev or next anymore)

    <div class=”pagination-wrap portfolio-pagination clearfix”>
    <div class=”nav-previous”><?php next_post_link(__(‘<i class=”icon-angle-left”></i> <span class=”nav-text”>%link</span>’, ‘swiftframework’), ‘%title’, 1 ); ?></div>
    <div class=”nav-next”><?php previous_post_link(__(‘<span class=”nav-text”>%link</span><i class=”icon-angle-right”></i>’, ‘swiftframework’), ‘%title’, 1 ); ?></div>
    </div>

    i need instread this working on same category

    #13453
    abcsrl
    Member
    Post count: 56

    Hello,
    no answer on this?
    pls let me know

    #13455
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    You’d need to enable the following plugin – Previous and Next Post in Same Taxonomy

    and then change the next/previous code to:

    <div class="nav-previous"><?php be_previous_post_link( '%link', '<i class="icon-angle-right"></i>', true,'', 'product_cat' ); ?></div>
    <div class="nav-next"><?php be_next_post_link( '%link', '<i class="icon-angle-left"></i>', true,'', 'product_cat' ); ?></div>

    – Ed

    #13466
    abcsrl
    Member
    Post count: 56
    This reply has been marked as private.
    #14133
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Just checked your site and looks like something has gone wrong, everything is unstyled. Did you move the site?

    – Ed

    #14141
    abcsrl
    Member
    Post count: 56

    now it is all ok
    can you pls check now for the next previous portfolio category problem?
    Thank you
    i wait for your news

    #14282
    Swift Ideas – Ed
    Keymaster
    Post count: 15264
    #14434
    abcsrl
    Member
    Post count: 56

    Ok thank you

    #14826
    abcsrl
    Member
    Post count: 56

    i updated to version 1.4.3
    changed the single-portfolio.php page with your code
    (plugin is still activated)
    but problem is back
    i have no previous back
    can you fix it again as you have made earlier?

    i have not touched anything, i only update theme from 1.4.2 to 1.4.3

    You have already access to check it

    this should be last thing…

    #14858
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    The corrected code was:

    <div class="nav-previous"><?php be_previous_post_link( '%link', '<i class="icon-angle-left"></i> %title', true,'', 'portfolio-category' ); ?></div>
    <div class="nav-next"><?php be_next_post_link( '%link', '%title <i class="icon-angle-right"></i>', true,'', 'portfolio-category' ); ?></div>

    – Ed

    #14897
    abcsrl
    Member
    Post count: 56

    ok perfect
    now it works again

    #16351
    Melanie – SUPPORT
    Member
    Post count: 11032

    Glad to hear that 🙂

Viewing 14 posts - 1 through 14 (of 14 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