• Resolved v123shine

    (@v123shine)


    Good day,

    Currently I making a theme for I submit to WordPress theme. Again I have a little problem.

    I’m using “Option Framework” plugin for create a simple theme option panel.

    I have a problem when I create a multicheck box for category. I’m using this code in options.php

    $options[] = array(
    		'name' => __( 'Select Category : ', 'theme-textdomain' ),
    		'desc' => __( 'Please select category for featured images 1 big image & 3 small images.', 'theme-textdomain' ),
    		'id' => 'pt_featured_image1x3',
    		'std' => '',
    		'type' => 'multicheck',
    		'options' => $options_categories
    	);

    I print using this code:

    <?php $multicheck = of_get_option( 'pt_featured_image1x3'); ?>
    <?php print_r($multicheck); ?>

    The multicheck box output for category like this:

    Array ( [1] => 1
             [3] => 1
             [7] => 1 )

    I’m using this code to load the output:
    <?php query_posts("cat="); ?>

    How to make the code load like this:
    <?php query_posts("cat=1,3,7"); ?>

    Can someone help me, please!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Display recent post by category ID’ is closed to new replies.