Public Ticket #288724
Request a shortcode which displays a list by a specific taxonomy


  • Ben started the conversation

    Hi, there.

    I'm creating a restaurant review website with Flavor.

    I'm using 2 different categories - Restaurant and food. Each food has its restaurant as a taxonomy.

    What I want to do is that I'd like to put a food list in the detail page of a restaurant like the list which I can see after clicking on a taxonomy.

    I have to have this function for making my website work properly. Really looking forward to hearing from you soon!

    Thank you.



  •  327
    Brian replied

    So you're wanting to list all items within a taxonomy on each post within that taxonomy? Or something else? Trying to understand exactly what the question is here so I can help, thanks.

  • Ben replied

    So, let's have an example here:

    Restaurant A has Food A, Food B, and Restaurant A's taxonomy is R_A.

    In the detail page of Restaurant A, I'd like to put a list of Restaurant A's Foods - Food A and Food B. So, what I want to have is a shortcode for the list with a taxonomy such as <taxonomyList id=R_A>.

    The appearance of the list needs to be as same as the list that I can see after clicking on the taxonomy R_A.  

    I'm attaching 2 images which explain how the list looks like. Hope you understand now.

  •  327
    Brian replied

    Oh I see, so what it already does in the overview, but you want it in shortcode form so you can put it anywhere. That's a good idea, I'll add it to the list of future possible theme options.

  • Ben replied

    Sounds great! I will be looking forward to hearing from you!

    Thank you!

  •  327
    Brian replied

    You're welcome, and thanks for the good suggestion.