• Resolved ocaso

    (@ocaso)


    Hey.

    I would like to ask how this plugin works?

    Because I use this plugin, it reorders my post very well.

    But I use another plugin to add after my posts a “Next/Previous” button. But if I hit this button, it doesn’t open the correct REORDERED post. It opens the DEFAULT ORDERED post, not the reordered.

    Can I fix it somehow?

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    But I use another plugin to add after my posts a “Next/Previous” button.

    it depends on how that plugin builds its list of next/prev posts.

    But if I hit this button, it doesn’t open the correct REORDERED post. It opens the DEFAULT ORDERED post, not the reordered.

    this plugin enables the WordPress standard for prev/next post selection in page templates, see FAQ #15.

    So you don’t need a plugin do this, simply use the above functions in your page templates.

    Thread Starter ocaso

    (@ocaso)

    But can I use this within categories?

    Plugin Author Aurovrata Venet

    (@aurovrata)

    yes

    Thread Starter ocaso

    (@ocaso)

    Is there any built-in function to do it within categories? Or I need to write an own function?

    Sorry for the lot of questions, but I don’t know functions.

    • This reply was modified 4 years, 2 months ago by ocaso.
    Plugin Author Aurovrata Venet

    (@aurovrata)

    Is there any built-in function to do it within categories? Or I need to write an own function?

    the built-in function already exists in WordPress core, you just need to add it to your page template.

    You’ll need to follow a tutorial on how to do it.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    else you need to use a theme which already has navigation functionality

    Thread Starter ocaso

    (@ocaso)

    Thank you for the tutorial, you are awesome!

    But it still not follow the reordered order.

    In the category pages, it still shows the CORRECT order.
    But the next and previous don’t follow the correct REORDERED order.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    In the category pages, it still shows the CORRECT order.
    But the next and previous don’t follow the correct REORDERED order.

    where are your prev/next buttons? are they in a category archive page?

    If you are testing on a general post archive page or single post then it will not work as the query a general query, not a taxonomy query.

    I just tested on WordPress theme twentyfifteen which paginates the taxonomy archive and it works just fine.

    If you are not sure, change your theme to twentyfifteen and test the pagination on a category archive page.

    Thread Starter ocaso

    (@ocaso)

    I put prev/next buttons in the single.php file.

    Because I want use it in my posts.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I put prev/next buttons in the single.php file.

    and that’s the reason it is not working. By default when you open a post link to be displayed in single.php it will not build a taxonomy query, and therefore the prev/next links are the posts that follow the in chronogical order.

    In order to achieve your desired effect, modify our archive.php page template to display a single post and add your prev/next button.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I put prev/next buttons in the single.php file.

    and that’s the reason it is not working. By default when you open a post link to be displayed in single.php it will not build a taxonomy query, and therefore the prev/next links are the posts that follow the in chronogical order.

    In order to achieve your desired effect, modify our archive.php page template to display a single post and add your prev/next button.

    Or you can alter the query within your single.php

    Thread Starter ocaso

    (@ocaso)

    I need category pages too, so I cannot modify archive.php

    Or you can alter the query within your single.php

    Can you help me with this? Thanks.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I need category pages too, so I cannot modify archive.php

    build an archive page for specific terms then.

    Can you help me with this? Thanks.

    I only provide fixes and general guidelines. If you want a solution you will need to hire a programmer. If you wish to hire my services you can reach out to me on vrata at syllogic dot in

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Next, Previous Post’ is closed to new replies.