Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1700

    Can you help in portfolio I wish to remove comments “Closed” and the “Posted in:” on all the portfolio pages

    see: http://www.psweb-test.com/?portfolio=absolute-moon-youtube I want to remove

    “Posted in: Timber Fences-Jun 19, 2010″ “Comments Off”

    I have tried to amend the comments.php file with

    <?php if( get_post_type() != ‘portfolio’ ) {?>

    <!– If comments are closed. –>

    <span class=”meta”><?php _e(‘Comments are closed.’,’avisio’); ?></span>

    <?php } ?>

    However this does not seem to work can you help me please?

    #35924

    Replace this code in single.php:

    <span class="categories"><?php _e('Posted in: ', 'avisio'); the_category(', '); echo $terms; ?></span><span class='limit'>-</span>
    <span class="date"><?php the_time('M d, Y') ?></span>
    <span class="comments"><?php comments_popup_link(__('No Comments','avisio'), __('1 Comment','avisio'), __('% Comments','avisio')); ?></span>

    with:

    <?php if( get_post_type() != 'portfolio' ) {?>
    <span class="categories"><?php _e('Posted in: ', 'avisio'); the_category(', '); echo $terms; ?></span><span class='limit'>-</span>
    <span class="date"><?php the_time('M d, Y') ?></span>
    <span class="comments"><?php comments_popup_link(__('No Comments','avisio'), __('1 Comment','avisio'), __('% Comments','avisio')); ?></span>
    <?php } ?>

    #35925

    Many Thanks worked great

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Removing "Comments" and "Posted in" on Portfolio Pages Only’ is closed to new replies.