Support

Account

Home Forums General Issues Using the true/false field to decide if a post is displayed Reply To: Using the true/false field to decide if a post is displayed

  • I have added it like so –

    
    <section id="channels" class="container">
    	<div class="rowOpen clearfix">
        	<div class="twelvecol">
            	<div id="masonary" class="nomargin">
            	
                	<?php
    					$channels = new WP_Query(array('post_type'=> 'channels'));
    					while ($channels->have_posts()) : $channels->the_post();
    					if( ! get_field('show_on_channel_page')){ continue; }
    				?>
                        <div class="mason galleryItem">
                            <div class="img-contain border">
                                <a href="<?php the_field('channel_link'); ?>" target="_blank" class="img-shiv">
                                  <?php $image = get_field('channel_logo');
                                        if(!empty($image)) {
                                            $imageResized = vt_resize( '', $image, 183, 183, false );
                                            $imageTitle = get_the_title(); 
                                            echo '<img src="'.$imageResized[url].'" height="'.$imageResized[height].'" width="'.$imageResized[width].'" alt="'.$imageTitle.'" class="statImg" />';
                                        } 
                                   ?> 
                                </a>
                            </div>
                        </div>
                        
                  <?php endwhile; ?>      
            	</div>        
        	</div>    
    	</div>
    </section>
    

    and I still can’t seem to get it to work.

    Sorry for my incompetence but i’m fairly new to this.

    Thanks, Harry.