Tagged: x
-
AuthorPosts
-
August 31, 2016 at 7:48 am #1155037
Hi, I’m trying to retrieve portfolio specific category using WordPress query: post_type=x-portfolio&orderby=date&order=asc&cat=11
In this form the “cat=11” portion of code call a post category and not a portfolio one.
So, how can I call instead a portfolio category?
Thank you
August 31, 2016 at 9:18 am #1155159Hey there,
x-portfolio
is correct but not sure why it doesn’t work with your function. Please see https://codex.wordpress.org/Class_Reference/WP_Query#Type_Parameters for the correct usage of WP_Query. You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/Thanks.
August 31, 2016 at 10:18 am #1155255Maybe I didn’t explain myself: x-portfolio works well and it designates post type.
I would like to know how retrieve portfolio categories.
Post categories: cat=xy
Portfolio categories: ?=xy
Thank you
August 31, 2016 at 11:35 am #1155363Sorry for the confusion. Its
portfolio-category
. Remember to use the category name not the number.Hope that helps. 🙂
-
AuthorPosts