• Hi, thanks for your plugin and product. I try to use custom post types and i created four post types (rooms, services, Menus, Galleries).
    in my theme i have several good widget (plus wp default widget) and i have to use a widget that display and filter the post by category. Now is there a way to use this (and other widgets) without replace all with a new widget for each custom post type?

    http://ww.wp.xz.cn/plugins/types/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    I don’t have sure if understood your question. You can display the widget which will display and filter the post by category in another sidebar. Can you explain a bit more?

    Thread Starter nonchiedercilaparola

    (@nonchiedercilaparola)

    in my theme there are custom widget. one of this i a widget portfolio filter that show a certain n. of post (normal post) of a specific category. ex. “show the last three post of news gategory”.

    but this doesn’t work with my custom post types (the category are the same). the query in the widget loop only into default post. so i would like the best way to use the same widget with my custom post.
    1 – solution: modify the widget code to have a loop that search into all kind of post (normal and custom post types) and then take theme by category (i assign a specific category for each custom post type).
    2 – solution: modify and replace the widget to have one widget portfolio filter for each custom post types (ex. widget portfolio filter types1, widget portfolio filter types2, … ecc…)

    Thread Starter nonchiedercilaparola

    (@nonchiedercilaparola)

    Solved:) for me best solution is one

    in short word:

    query_posts( array(
    ‘post_type’ => array( ‘post’, ‘report’, ‘opinion’, bookmark’ ),
    ‘cat’ => 3,
    ‘showposts’ => 5 )
    );

    from:
    http://ww.wp.xz.cn/support/topic/query-multiple-custom-post-types-in-single-loop?replies=8

    i

    Ah great, thanks for sharing the solution.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Widget and Custom Post Types’ is closed to new replies.