WordPress.org

Forums

Question: Inline comments (6 posts)

  1. mans
    Member
    Posted 11 years ago #

    What can I do to show inline comments (below the topic) in wordpress? I am messing around with comment code, but I can't get any result.
    Look to http://www.noctambul.net to see an example of what I say.
    Thanks!

  2. mans
    Member
    Posted 11 years ago #

    I've got all the code modified, the only thing I need now is how to get the post ID. Is there any function o get the post ID?

  3. lars
    Member
    Posted 11 years ago #

    <pre>
    <?php comment_ID() ?>
    </pre>
    But this is already in the comment template, wp-comments.php.
    Inline comment functionality is also supported by default, so you shouldn't need to modify anything to get it to work. If you're using a modified index file, i.e. one that previously used popups, then you have to uncomment the popup script in the head section.

  4. lars
    Member
    Posted 11 years ago #

    Oops, you want the post ID, not the comment ID, right?
    This is it:
    <pre>
    <?php the_ID(); ?>
    </pre>

  5. scooter
    Member
    Posted 11 years ago #

    Isn't that layout from CSSZenGarden? ;)

  6. NuclearMoose
    Member
    Posted 11 years ago #

    Release One is his inspiration, I believe.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.