how can i use Options Framework in wordpress loop
-
dear developers
i want show page detail with wordpress loop & Options Framework.
my loop without Options Framework :<?php $my_query = new WP_Query('showposts=1&page_id=39'); while ($my_query->have_posts()): $my_query->the_post(); $do_not_duplicate = $post->ID;?> <h2> <?php echo of_get_option( 'special_product', 'no entry' ); ?> </h2> <?php the_post_thumbnail('featuredbox'); ?> <?php the_content(__('')); ?> <br/> <?php endwhile; ?>
its work good & show page id 39
my code in Options :
$options[] = array( 'name' => __('Select a Page', 'options_theme'), 'desc' => __('Passed an pages with ID and post_title', 'options_framework_theme'), 'id' => 'featuredbox1', 'type' => 'select', 'options' => $options_pages);
how can i put below code in loop:
<?php echo of_get_option( 'featuredbox1', 'no entry' ); ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘how can i use Options Framework in wordpress loop’ is closed to new replies.