[resolved] Custom Taxonomy archiv page->wp_query not working with numbers (2 posts)

  1. Michael Lenhart
    Posted 2 years ago #

    Hello Guys and Ladies,

    I have created a taxonomy which I called Fakultät, thats german and means faculty ;-), and I created a taxonomy-archiv, taxonomy-fakultät.php.
    I create in the Dashboard with the taxonomy Fakultät numbers and
    if I want to calling the posts with the faculty number 01, it doesn't work, but if I calling a post with the faculty f01 it works and show me alls posts with f01.
    So my question is, what can I do for using numbers? It seems to be that the wp_query and term can't find posts with term equal to number.

    This is my Code for the taxonomy-fakultät.php

    [Excessive code moderated. Please use a pastebin.]

  2. Michael Lenhart
    Posted 2 years ago #

    The problem was resolved. The issue was the slug by creating a faculty.
    I changed the slug by faculty 01 to faculty-01 and then the wp_query was not able to find the post because it was looking for the term 01 and not faculty-01. So I changed the slug to 01 and it works like a charm.

Topic Closed

This topic has been closed to new replies.

About this Topic