I’ve noticed WordPress has some illogical differences between wp_link_pages and paginate_links. Specifically, WP_LINK_PAGES does not automatically add a class to the current page like paginate_links does.
Anybody have a quick functions fix?
I’ve noticed WordPress has some illogical differences between wp_link_pages and paginate_links. Specifically, WP_LINK_PAGES does not automatically add a class to the current page like paginate_links does.
Anybody have a quick functions fix?
You must be logged in to post a comment.
This is what I use as a replacement for
wp_link_pages()
. Instead of a separate class it uses another element for the current page, because a page should never link to the current URL.