Please help me understand how to make Multicheck type for metabox. Search for all internet and nothing. Thanks.
@Jan I have a headache from this function. I dont know whats wrong.I'm trying your method but nothing, then I'm trying get_posts but with this method I have too many troubles. With your method I get this error before content:
Warning: urldecode() expects parameter 1 to be string, array given in Z:\home\mysite.net\www\wp-includes\query.php on line 1878
Here is my code:
<?php $catids = get_post_meta($post->ID,'_mtb_multicheck',false); $limit = 10; query_posts( array('posts_per_page' => $limit, 'cat' => $catids, 'paged' => get_query_var('paged') ) ); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <!-- Content--> <?php endwhile; ?> <?php pagination(); ?> <?php else : ?> <!--Error message here--> <?php endif; ?>
I want to know what my vatiables return. Make this:
query_posts( array('posts_per_page' => $limit, 'cat' => print_r($catids), 'paged' => get_query_var('paged') ) );
and get this on my page:
Array (  => 5  => 5  => 3 )
I think it's my query_posts printed, not $catids. It's a big, big trouble. I feel myself like a nerd. Please help me.