Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Flexform › NexT Previous portfolio category
New Landing › How can we help? › Themeforest Theme Support › Flexform › NexT Previous portfolio category
- This topic has 13 replies, 4 voices, and was last updated 11 years by Melanie – SUPPORT.
-
Posted in: Flexform
-
July 19, 2013 at 3:50 pm #12149
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?
July 22, 2013 at 3:17 pm #12453Hi,
Try a 1 instead of TRUE. Reference: http://codex.wordpress.org/Function_Reference/next_post_link
Regards,
————————————————————————————————————Cosmin – Support
July 22, 2013 at 3:27 pm #12458Hello 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
July 29, 2013 at 4:19 pm #13453Hello,
no answer on this?
pls let me knowJuly 29, 2013 at 4:21 pm #13455Hi 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
July 29, 2013 at 4:44 pm #13466This reply has been marked as private.August 2, 2013 at 10:47 am #14133Just checked your site and looks like something has gone wrong, everything is unstyled. Did you move the site?
– Ed
August 2, 2013 at 11:03 am #14141now it is all ok
can you pls check now for the next previous portfolio category problem?
Thank you
i wait for your newsAugust 3, 2013 at 9:19 am #14282Fixed – http://www.confimiravenna.it/w/?portfolio=sazzi
– Ed
August 5, 2013 at 7:23 am #14434Ok thank you
August 7, 2013 at 9:09 am #14826i 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…
August 7, 2013 at 10:54 am #14858The 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
August 7, 2013 at 12:28 pm #14897ok perfect
now it works againAugust 14, 2013 at 9:17 am #16351Glad to hear that 🙂
-
Posted in: Flexform
You must be logged in and have valid license to reply to this topic.