WordPress.org

Forums

[resolved] Get the taxonomy link. I mean the WHOLE taxonomy, not the terms (6 posts)

  1. alevalentini
    Member
    Posted 9 months ago #

    I've searched everywhere but I can't make this work. I have three custom taxonomies in a news website. Let's say that one taxonomy is "sport". I'm using this to create sub-sites (the "sport" section has its own colors, contents...).

    I want to put a link in the menu that lists ALL the posts that have been signed inside that taxonomy. Not one single term inside "sport". All of them. So I am not looking for a way to list all custom taxonomy terms and link to them. I know how to do that.

    I want to link to the WHOLE taxonomy. But I can't find how. I tried with ?taxonomy=sport but it does not work. Maybe because permalinks are deactivated and no, I cannot activate them because at this time the server does not support them... Should I push the hosting service to support them and then I would be solved? Or there is something I am missing?

  2. alevalentini
    Member
    Posted 9 months ago #

    Anybody?

  3. alevalentini
    Member
    Posted 8 months ago #

    I ended up creating a custom type, "sportArticle".

  4. Matty Cohen
    Member
    Posted 8 months ago #

    Hi there,

    You could try grabbing the terms for the taxonomy and then looping through those to get the posts.

    Posts aren't tied to a taxonomy, so the data structure doesn't match what you're looking to do. :) They way to do this, that I'd advise, is above, or via a custom SQL query, which wouldn't be the cleanest method.

  5. alevalentini
    Member
    Posted 8 months ago #

    Yep. I created some pages and then created page-id.php files with the proper queries.

    I guess that what I was looking for was some built-in function that used something like category.php, which I find very interesting, because it works perfectly with all taxonomies terms, but not as an archive for all categories inside a taxonomy. Whatever :D

  6. Matty Cohen
    Member
    Posted 8 months ago #

    I don't believe such a function exists, unfortunately. :)

Reply

You must log in to post.

About this Topic