Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1155037

    krealiners
    Participant

    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

    #1155159

    Christian
    Moderator

    Hey 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.

    #1155255

    krealiners
    Participant

    Maybe 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

    #1155363

    Christian
    Moderator

    Sorry for the confusion. Its portfolio-category. Remember to use the category name not the number.

    Hope that helps. 🙂