Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You may try this:</p> <pre><code>$hide = get_post_meta( $post-&gt;ID, 'hide', TRUE ); if ( $hide != '' ) { // Don't display } else { // Display post } </code></pre> <p><strong>UPDATED</strong></p> <p>All the code in your update is for one category, in this case <code>audio</code>, so this condition should be at the top, like this:</p> <pre><code>&lt;?php if ( is_category( 'audio' ) ) { $hide = get_post_meta( $post-&gt;ID, 'hide', TRUE ); if ( $hide != '' ) { // Don't display } else { ?&gt; &lt;div class="entry-summary"&gt; &lt;?php if ( has_post_thumbnail() ) { ?&gt; &lt;?php if ( $audiohover == '5' ) { ?&gt; &lt;div class="view view-fifth"&gt; &lt;?php the_post_thumbnail(); ?&gt; &lt;div class="mask"&gt; &lt;a href="&lt;?php echo esc_url_raw( $url ); ?&gt;" class="info" target="_blank"&gt;&lt;img src="else" /&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php } elseif ( $audiohover == '6' ) { ?&gt; &lt;div class="view view-fifth"&gt; &lt;?php the_post_thumbnail(); ?&gt; &lt;div class="mask"&gt; &lt;a href="&lt;?php echo esc_url_raw( $url ); ?&gt;" class="info" target="_blank"&gt;&lt;img src="else" /&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php } elseif ( $audiohover == '4' ) { ?&gt; &lt;div class="view view-fifth"&gt; &lt;?php the_post_thumbnail(); ?&gt; &lt;div class="mask"&gt; &lt;a href="&lt;?php the_permalink(); ?&gt;?fromwhere=audio"" class="info"&gt;&lt;img src="img" /&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php } } } }?&gt; </code></pre> <p>That is, if I understood right.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload