Getting all the associated categories of posts in a specific custom taxonomy? (1 post)

  1. Waqas
    Posted 2 years ago #

    Is it possible to list all the categories of posts associated with a specific custom taxonomy?

    For example;

    • My custom taxonomy is Resorts.
    • In Resorts I have Posts 1, Post 2, Post 3.
    • Each post has a category (using the default WP category), for example :
        Post 1 is assigned to category Interior
        Post 2 is assigned to category Luxury
        Post 3 is assigned to category Lifestyle

    Now I'm on Resorts archive page, where I want to list all the the wordpress default categories (Interior, Luxury and Lifestyle in a foreach loop) of posts, which are in my custom taxonomy.

    Using wpdp or any function hack?

Topic Closed

This topic has been closed to new replies.

About this Topic