• Resolved bsy-web

    (@bsy-web)


    I have a category template which uses WP next_posts_link and previous_posts_link functions. They return category paginated URLs in form http://domain.com/category-name/page/3/.

    This allows user to view post while remaining in category view.

    How can I achieve same effect with previous_post_link_plus function? It currently returns the direct page link. I am using the following settings:

    <?php
    	$nav_result_options = array(
    		'order_by' => 'post_date',
    		'loop' => false,
    		'end_post' => false,
    		'thumb' => false,
    		'max_length' => 0,
    		'format' => '%link',
    		'date_format' => 'd/m/Y',
    		'tooltip' => '%title',
    		'in_same_cat' => true,
    		'in_same_tax' => false,
    		'in_same_format' => false,
    		'in_same_author' => false,
    		'in_same_meta' => false,
    		'ex_cats_method' => 'strong',
    		'in_cats' => $cat_id,
    		'num_results' => 1000,
    		'return' => 'output'
    	);
    ?>

    The final effect I am going for is to display list posts in current category with each link as category paginated URL. I could not find in documentation how to change the URL type which is returned.

    Peace

    http://wordpress.org/plugins/ambrosite-nextprevious-post-link-plus/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to get category paginated post links (like WP next_posts_link() returns?)’ is closed to new replies.