stephengarratt on "[Theme: Minamaze] Previous Post / Next Post links - limit to same category"

ساخت وبلاگ

Hello,

I have a MinamazePro licence.

I would like to restrict the Previous Post/ Next Post links in the nav-below section to go only to posts within the same category.

I know that the code below is what I should use, but if I insert it into the loop on the single.php or page.php files it creates the right links but they do not replace the links in the themes nav-below section.

Please see this page: http://jungian-analyst.london/members-notice-2/

Here is the code of my single.php

<?php
/** * The Template for displaying all single posts. * * @package ThinkUpThemes */
get_header(); ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'single' ); // Previous/next post navigation. previous_post_link( '%link', 'Prev post in category', true ); next_post_link( '%link', 'Next post in category', true ); ?> <?php thinkup_input_nav( 'nav-below' );?> <?php /* Add Social Share */ thinkup_input_share(); ?> <?php /* Add Author Bio */ thinkup_input_postauthorbio(); ?> <?php thinkup_input_allowIdea(); ?> <?php endwhile; wp_reset_query(); ?>
<?php get_footer(); ?>

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 62 تاريخ : شنبه 28 فروردين 1395 ساعت: 18:34