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?
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…)
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.