Hide some of template possible?
-
Is there a way to hide a part of my template for all the posts inside of a category?
Example: i want to hide this from showing up in posts that are from category X:
`<?php previous_post_link(‘%link’, ‘%title’, TRUE, ‘0’); ?> – <?php next_post_link(‘%link’, ‘%title’, TRUE, ‘0’); ?>
<div align=”right” id=”admin”>
<font size=”1″>Posted by <font color=”a53131″><?php the_author() ?></font>.<?php$post_ID = get_the_ID();
if ( $last_id = get_post_meta($post_ID, ‘_edit_last’, true) ) {
$last_user = get_userdata($last_id);
printf(__(‘Last Broken Video Fixed By <font color=”a53131″>%1$s</font> on %2$s’), wp_specialchars( $last_user->display_name ),mysql2date(get_option(‘date_format’), $post->post_modified), mysql2date(get_option(‘time_format’),$post->post_modified));
};?></font></div>’
Is this at all possible?
- The topic ‘Hide some of template possible?’ is closed to new replies.