I would like to have a category page just show quotes without links or images. like this https://demo.zigzagpress.com/xplorer/category/post-format-quote/ it displays just the quote

I see they have a template for quotes and this is the code for that. How can I apply it to my theme? thanks

`//* Quote Post Format

global $post;

$content = get_the_content(); 
$title = get_the_title(  );
$permalink=get_permalink(  );

$like_counter = ( get_post_meta( $post->ID, 'zp_like' ,true ) > 0 )? get_post_meta( $post->ID, 'zp_like' ,true ): 0;
$like = '<span class="zp_like_holder '.$post->ID.'"><i class="fa fa-heart '.$post->ID.'"></i><em class="like_counter">('.$like_counter.')</em></span>'; 

echo '<div class="content_container">';
printf( '<div %s>', genesis_attr( 'entry-content' ) );
echo '<h2>'.$content.'</h2>';   
echo '<p class="quote_author"><a href="'.$permalink.'" title="Permanent Link to '.$title.'">'.$title.'</a>'.$like.'</p>';           
echo '</div>';
echo '</di>';`

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.