WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Michael Lenhart
    Member
    Posted 9 months 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
    Member
    Posted 9 months 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.

Reply

You must log in to post.

About this Topic