Support » Plugin: Polylang » [Plugin: Polylang] next_post_link/previous_post_link

  • Resolved yoyurec


    In WP next_post_link & previous_post_link functions doesn’t support custom taxonomy (with custom post types all is OK). Polylang plugin uses own taxonomy, so when we use loop with Next\Prev links we get posts in all languages (((

    To fix this try to install “Ambrosite Next/Previous Post Link Plus” plugin and replace default WP functions to this one:

    <div class="navbutton nav-previous">
    	<?php next_post_link_plus( array('in_same_tax' => 'language') ); ?>
    <div class="navbutton nav-next">
    	<?php previous_post_link_plus( array('in_same_tax' => 'language) ); ?>

    PS: tnx for 0.4 version, a lot of work done! my wishlist became empty )))

Viewing 2 replies - 1 through 2 (of 2 total)
  • sorry, in prev link typing error –
    <?php previous_post_link_plus( array(‘in_same_tax’ => ‘language) ); ?>

    Plugin Author Chouby


    To be honest, except for the languages, I don’t use custom taxonomies in my site, so my tests were obviously not complete. I will try to correct this in the next release.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Polylang] next_post_link/previous_post_link’ is closed to new replies.