WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Waqas
    Member
    Posted 3 months 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?

Reply

You must log in to post.

About this Topic