WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Pagination Issue With Custom Taxonomy (1 post)

  1. openwp3
    Member
    Posted 1 year ago #

    Hi,

    I've been trying to resolve this issue by reviewing existing posts on the topic, but nothing seems to be working. I have created a custom taxonomy and when pulling up a results page, only the first page of results displays. The other pages are indicated by the page numbers (I'm using pagination), but when I click through to other pages, getting a 404 error.

    Followed many threads here, also:

    https://codex.wordpress.org/Making_Custom_Queries_using_Offset_and_Pagination
    (Using this solution, I received an error message "missing argument. . . "

    Also tried the following code with no success:

    add_filter( 'option_posts_per_page', 'tdd_tax_filter_posts_per_page' );
    function tdd_tax_filter_posts_per_page( $value ) {
        return (is_tax('custom-taxonomy')) ? 1 : $value;
    }

    Can anyone help? With so many documented issues, don't understand why nothing seems to be working.

    Thanks in advance.

    [Moderator note: Nobody owes you support]

Topic Closed

This topic has been closed to new replies.

About this Topic