Hierarchical taxonomy 404 Not Found (4 posts)

  1. zyrq
    Posted 5 years ago #

    Not sure how to list all (custom) posts in child term of taxonomy.

    I made a Custom Post Type of Newsitems
    With a hierarchical taxonomy with terms
    News (parent)
    Press (child)
    Sitenews (child)

    Here's what I did:

    Write a new Newsitem with term Press
    Display all the News on a page with a custom template news-page.php gives me a nice listing of Newsitems by using $news = new WP_Query('post_type=newsitems') etc.

    Viewing that single newsitem posted in Press with a list of terms (get_the_term_list) with a custom template of single-news.php gives me the content and the terms:

    Posted in Press (url=news/press)

    And the bummer: clicking on Press to show all the news in Press gives a 404. Could anybody explain why and how to solve this? Thanks

  2. zyrq
    Posted 5 years ago #

    extra info:
    permalink settings are /%category%/%postname%
    with default permalinks there's no 404
    Custom post types were made with Custom Post Type UI plugin,

  3. zyrq
    Posted 5 years ago #

    Fundamental question: can this be done?

    A page with a slug of news: example.com/news, slug=news
    Custom Post Type: News, slug=news
    Taxonomy: News, slug=news
    Terms: Press, Sitenews,…

    The News page: example.com/news
    The titles:
    URL: example.com/news/text1
    URL: example.com/news/text2
    URL: example.com/news/text3

    Single News view:
    URL: example.com/news/text1
    Title: Great news
    Content: Lorem etc.
    Posted in: Press (url=news/press)

    Archive of all posts in Press( url=news/press)
    Title Press1
    Title Press2

  4. zyrq
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic