I want to retrieve combined tag-results within my tag.php template. That tag-template-page can only be fired in that 1 specific use case, as I have no search boxes or forms available anywhere in my theme. The url-scheme that I deliver has multiple combined tags, eg. page.com/tag/orange+cheap+organic

My tag.php file then again has a very "generic" way, like that

if ( have_posts() ) {
    while ( have_posts() ) {
}} ?>

While that works fine for 1 tag, as soon as I have more tags in the URL I get the 404-page. What else would I need to do? I 'd like to get the results being displayed as an AND-result (alles pages with the tags: cheap AND orange AND organic in the previous example)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.