Support » Fixing WordPress » custom post type tags

  • I’m using a custom post type called “portfolio”, I’ve created a taxonomy called “portfolio_tag” and I’m able to add tags on each item.
    Now I want to list them, but I’m having trouble with this because my website loads the content through jquery/ajax.
    Take a look at this snippet from my code:
    I’ve tried to duplicate all the relevant code which is used for displaying categories but it’s not working is not retrieving anything.
    I think I have to define something here but I’m not sure how exactly:

            'post_type' => array ('portfolio'),
            'orderby' => $orderby,
            'order' => 'DESC',
            'paged' => $paged,
            'posts_per_page' => $post_per_page,
            'ignore_sticky_posts' => $do_not_show_stickies
                $args['tax_query'] = array(
                        'taxonomy' => 'portfolio_category',
                        'field' => 'slug',
                        'terms' => $pf_categorynotin,
                        'operator' => 'NOT IN'
                ); //category__in

    Any suggestions ?
    Here is my website if helps with something:

  • The topic ‘custom post type tags’ is closed to new replies.