Hi, my problem is this:
i use custom fields of a page (portfolio_inhalte_kategorie_id) which stands for an article category id.
Now i want to implement a feature that gives out all the articles in just this category (id).
<?php
$portfolio = get_post_custom_values("portfolio_inhalte_kategorie_id");
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
if (get_post_custom_values("portfolio_inhalte_kategorie_id")) {
$category = (get_post_custom_values("portfolio_inhalte_kategorie_id"));
} else {
$category="0";
}
$wp_query->query('cat='.$category.'&paged='.$paged);
?>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
my problem: wordpress always spit out all items of all categories and not only my chosen (id).
I even tested the if cases with simple echo of the chosen custom field id which works. but finally the output of the articles is wrong.
Any idea? :(