Tag Archive for Custom Post Types

  • mprysyaz

    #5581

    Hi! One more time big thanx for the great theme. And here is my question:

    I am using Easy Custom Post Type Plug-in. I have already created archive pages for all of the custom types.

    But I have problem with Tag Archive. Seem that theme does not support archive tags for custom post types.

    How can I create one Tag Archive for all of my custom post types?

    mprysyaz

    #32258

    Hi everybody!

    I have just found solution of my problem.

    I put this code to my function.php file:

    function post_type_tags_fix($request) {
    if ( isset($request['tag']) && !isset($request['post_type']) )
    $request['post_type'] = 'any';
    return $request;
    }
    add_filter('request', 'post_type_tags_fix');

    It works great.

Viewing 2 posts - 1 through 2 (of 2 total)

  • You must be logged in to reply to this topic.