• Resolved markf1

    (@markf1)


    I’m trying to fine tune a custom theme made by others. The theme is based on twenty ten but has a lot of differences.

    I’m trying to get the little bit of meta data at the bottom of each post to be the same as on a basic twenty ten theme post. For example:
    http://www.gauchezco.com/gauchezco-blog/

    At the bottom of each post is ” Posted in Category | Leave a comment”

    Leave a comment is replaced by “# of comments” if comments have been left.

    I am doing this on an offline copy of the site on my localhost so unfortunately I cannot show what I have. But I have managed to get the “Posted in category working. The part I’m having trouble with is getting “Leave a comment” link (which changes to “# of comments” link if comments have been left.

    Here is the code I have. It shows the number of comments , but it doesn’t link to the enter a comment page. Also, when there are no comments it displays shows “No comments” instead of “Leave a comment”.
    Here is the code I have in a file called post-meta-lower.php:
    <div class=”post-meta”>
    <p>
    Posted in <?php the_category(‘, ‘) ?>
    <?php the_tags(‘
    Tagged ‘, ‘, ‘, ”) ?> | <?php comments_number() ?>
    </p>
    </div>

    Can anyone offer any advice on how I might get this functionality enabled?

    TIA for any help!

Viewing 1 replies (of 1 total)
  • Thread Starter markf1

    (@markf1)

    got it figured out.

    needed to add:
    <?php comments_popup_link(‘Leave a comment »’,
    ‘1 Comment »’,
    ‘% Comments »’); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Post meta question’ is closed to new replies.