Select a page (if don't, not display) – Options Framework Plugin
-
Hello.
I found your framework a few days ago and am loving it!
But I have little doubt…
If I select a page, the system displays the contents. But if I don’t choose any page, it shows the default loop (with posts). Is there a way to set up to display none?
The code:
<div> <?php $recent = new WP_Query('page_id='.of_get_option('test')); while($recent->have_posts()) : $recent->the_post();?> <h3><?php the_title(); ?></h3> <?php the_excerpt(); ?> <?php endwhile; ?> <a href="<?php the_permalink() ?>" rel="bookmark">Learn More</a> </div>
https://www.ads-software.com/extend/plugins/options-framework/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Select a page (if don't, not display) – Options Framework Plugin’ is closed to new replies.