Ambrosite Next/Previous Post Link Plus
echo Current Post number (4 posts)

  1. andyy
    Posted 4 years ago #

    Is it possible to show the current post number?
    Something like:

    Page: 2 of 5.

    I'm using Post Link Plus to page through the custom post types from a particular custom taxonomy. I can provide further details if it'd be useful.

  2. ambrosite
    Plugin Author

    Posted 4 years ago #

    As currently written, no. The plugin contains two functions, next_post_link_plus and previous_post_link_plus, that output information about the next and previous posts. So it would be possible to do something like this:

    Previous Post: 1 of 5 | Next Post: 3 of 5

    However in order to output information about the current post (Current Post: 2 of 5), I would have to add a new function called current_post_link_plus. No one has ever requested anything like that before, and I think it is going a little outside the scope of what my plugin is intended to be used for. But if enough people think such a feature would be useful, I might try to add it in a future version of the plugin.

  3. andyy
    Posted 4 years ago #

    Thanks for such a quick reply Michael, that sounds fair enough. I think a way of showing current post position in the list would be a handy option but I understand if it's not such a quick thing to do.
    Hopefully a few other people like the idea of that feature, it would be nice to see it in a future version :) Andy

  4. ambrosite
    Plugin Author

    Posted 4 years ago #

    Apart from having to create a new function, the underlying database queries would also have to be rewritten in order to generate the paging information, so it is not a trivial fix. I would guess at least a half day to code, test, debug, and update the documentation. But like I said, I'll add it to the pile of ideas for possible inclusion in a future update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ambrosite Next/Previous Post Link Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic