Exclude post using costum fields
-
Hi,
is there a way to assign post to the widget by giving it a costum variable? or to exclude using this method.
Current situation
<?php /** * Flexible Posts Widget: Default widget template */ // Block direct requests if ( !defined('ABSPATH') ) die('-1'); echo $before_widget; if ( !empty($title) ) echo $before_title . $title . $after_title; if( $flexible_posts->have_posts() ): ?> <ul class="dpe-flexible-posts"> <?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?> <hr> <span class="entry-date"><?php echo get_the_date(); ?></span> <a href="<?php echo the_permalink(); ?>"> <?php the_title(); ?></h4> </a> <?php endwhile; ?> </ul><!-- .dpe-flexible-posts --> <?php else: // We have no posts ?> <div class="dpe-flexible-posts no-posts"> <p><?php _e( 'Geen actuele storingen', 'flexible-posts-widget' ); ?></p> </div> <?php endif; // End have_posts() echo $after_widget;
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Exclude post using costum fields’ is closed to new replies.