Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4574776
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:58:11+00:00 2026-05-21T19:58:11+00:00

Basically I have a custom post type of ‘products’ which has two taxonomies attached

  • 0

Basically I have a custom post type of ‘products’ which has two taxonomies attached to it…the normal ‘category’ and a custom taxonomy called ‘brands’.

I have a page which is ‘brand’ specific. On this page I’d like to list all the ‘categories’ that have a ‘product’ in them with a term of the ‘brand’ whos page I’m on attached.

Eg. say I’m on the “Nike” page. I want it to list all categories that have a ‘product’ in them with the ‘brand’ of “Nike” attached to them.

My initial thoughts are to use get_categories but theres now way to define a specific taxonomy or ‘brand’?

$categories = get_categories('orderby=name&depth=1&hide_empty=0&child_of='.$cat);

Anyone done this before or knows a way to query the database directly to get the required results?

Any help is much appreicated, Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:58:11+00:00Added an answer on May 21, 2026 at 7:58 pm

    sorry about the delay. managed to sort it on the WordPress stack exchange at the following link (for anyone who has the same issue): https://wordpress.stackexchange.com/questions/10998/get-categories-for-custom-post-type-with-a-specific-custom-taxonomy-attached

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I have a custom post type setup called Parts with over 5,000 posts
I have a custom server control which wraps a RadEditor (basically a textarea). I
I have a custom usercontrol, which is basically a dropdownlist, prepopulated with values from
I have a .NET assembly(3.5 framework) and it basically has a set of custom
I have setup a custom Post Type in WordPress and have a question. How
Basically I need a custom Wordpress post loop which outputs posts in the following
I have a custom component called ButtonPanel written in Actionscript. Basically it's just a
I want to have a custom initWithNibName , basically passing in another NSString as
I have written a custom class for overriding the seek method of QSlider. Basically
I have made a custom formwizard and incorporated it into my admin interface. Basically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.