WordPress.org

Support

Support » Plugins and Hacks » Polylang » [Resolved] [Plugin: Polylang] next_post_link/previous_post_link

[Resolved] [Plugin: Polylang] next_post_link/previous_post_link

  • 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>
    <div class="navbutton nav-next">
    	<?php previous_post_link_plus( array('in_same_tax' => 'language) ); ?>
    	</div>

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

    http://wordpress.org/extend/plugins/polylang/

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

    @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 ‘[Resolved] [Plugin: Polylang] next_post_link/previous_post_link’ is closed to new replies.
Skip to toolbar