• Resolved futurepocket

    (@futurepocket)


    Hi,
    If you go on: http://ahhelp.me/2011/07/11/qa-what-is-the-best-vacation-spot-in-mexico-for-our-situation/

    You see 0 comments. I want to change that text to 0 answers.

    Except, for one of my categories, I want to keep it reading “comments” and not answers. Here is the postinfo.php code:

    <?php if (!is_single() && get_option('askit_postinfo1') <> '') { ?>
    	<div class="postmeta">
    		<p class="postinfo"><?php _e('Posted','AskIt'); ?> <?php if (in_array('author', get_option('askit_postinfo1'))) { ?> <?php _e('by','AskIt'); ?> <?php the_author_posts_link(); ?><?php }; ?><?php if (in_array('date', get_option('askit_postinfo1'))) { ?> <?php _e('on','AskIt'); ?> <?php the_time(get_option('askit_date_format')) ?><?php }; ?><?php if (in_array('categories', get_option('askit_postinfo1'))) { ?> <?php _e('in','AskIt'); ?> <?php the_category(', ') ?><?php }; ?><?php if (in_array('comments', get_option('askit_postinfo1'))) { ?> | <?php comments_popup_link(__('0 comments','AskIt'), __('1 comment','AskIt'), '% '.__('comments','AskIt')); ?><?php }; ?></p>
    	</div> <!-- end .postmeta -->
    <?php } elseif (is_single() && get_option('askit_postinfo2') <> '') { ?>
    	<div class="postmeta">
    		<p class="postinfo"><?php _e('Posted','AskIt'); ?> <?php if (in_array('author', get_option('askit_postinfo2'))) { ?> <?php _e('by','AskIt'); ?> <?php the_author_posts_link(); ?><?php }; ?><?php if (in_array('date', get_option('askit_postinfo2'))) { ?> <?php _e('on','AskIt'); ?> <?php the_time(get_option('askit_date_format')) ?><?php }; ?><?php if (in_array('categories', get_option('askit_postinfo2'))) { ?> <?php _e('in','AskIt'); ?> <?php the_category(', ') ?><?php }; ?><?php if (in_array('comments', get_option('askit_postinfo2'))) { ?> | <?php comments_popup_link(__('0 comments','AskIt'), __('1 comment','AskIt'), '% '.__('comments','AskIt')); ?><?php }; ?></p>
    	</div> <!-- end .postmeta -->
    <?php }; ?>

    I’m guessing I need to add a in_category(id) with the is_single, but where would I add it? I tried adding it to <?php } elseif (is_single() && get_option('askit_postinfo2') <> '') { ?> but it didn’t make any difference. Any ideas please? Thanks!

  • The topic ‘Modifying postinfo for certain category’ is closed to new replies.