• idearuins

    (@madhushankarox)


    I have a custom Taxonomy called ‘owner’ and it has multiple posts as owner names (Using as a category) so I can filter posts by ‘owner’ taxonomy.

    I’m trying to make an index page of all owner names which starts with letter ‘A’. I was able to list all the owners with following code.

    foreach ( get_terms( 'owner' ) as $o ){
            $owner = $o -> name;
            if($owner[0] === 'A'){
                // Coding here...
            }
    }

    The issue I face is I want to show a pagination at the bottom of the page because there are hundreds of authors stars with ‘A’.

  • The topic ‘Filter and list posts of a custom taxonomy’ is closed to new replies.