Rewriting get_next_posts_link() for custom loop
I don’t know what do you mean by a ‘custom loop’ (perhaps you are using a custom WP_Query object?) but here is how I would do it in a normal situation (code hasn’t been tested): Note: My initial solution made use of the add_rewrite_endpoint function which turns out to be useless in terms of making … Read more