Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //set posts category from theme option
- $YOUR_CATEGORY_IDENTITY = get_option('of_YOUR_CATEGORY_IDENTITY');
- //store value from theme option
- $NUM_VAL = get_option('of_$NUM_VAL');
- query_posts('category_name='.$YOUR_CATEGORY_IDENTITY.'&posts_per_page='.$NUM_VAL.'');
- while (have_posts()) : the_post();
- ?>
- <!-- Add your content here -->
- <?php endwhile;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement