i have a filter on my template which returns posts from a given category and displays them in a slider gallery. This is the code:
<?php
if (is_page()) {
$cat=get_cat_ID($post->post_title); //use page title to get a category ID
$posts = get_posts( array('category' => 16) );
if ($posts) {
foreach ($posts as $post):
setup_postdata($post); ?>
This works fine with "normal" posts. But I have created 3 custom post types (some of the entries tagged with the same category). And they don't show up. Could anyone please help how to customize this code in order to be able to use it also with CPT's? Thank you, Ralf
query_posts