Conditionally unhook post content for certain post format
-
Love Simple Hooks,
I have my own code in to show content/title etc for post format video. This works fine pasted into the genesis post_content hook with the condition<?php if ( has_post_format( ‘video’ )){
?>
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<table><tr><td><?php
echo get_post_meta(get_the_ID(), “youtubelink”, true);
?></td>
<td><header class=”entry-header”>
<?php if ( is_single() ) : ?>
<h3 class=”entry-title”><?php the_title(); ?></h3>
<?php else : ?>
<h3 class=”entry-title”>
” rel=”bookmark”><?php the_title(); ?>
</h3>
<?php endif; // is_single() ?>
</header><!– .entry-header –>
<div class=”entry-content”>
<?php the_content(); ?>
</div><!– .entry-content –></td></tr></table>
<?php } ?>
- The topic ‘Conditionally unhook post content for certain post format’ is closed to new replies.