WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Custom Taxonomy archiv page->wp_query not working with numbers

[Resolved] Custom Taxonomy archiv page->wp_query not working with numbers

  • 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.]

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Custom Taxonomy archiv page->wp_query not working with numbers’ is closed to new replies.
Skip to toolbar