WordPress.org

Forums

Comments and non-single (category) template (3 posts)

  1. snawbel
    Member
    Posted 4 years ago #

    Hi,

    For various reasons I need to use the category listing template to show (sort of) single posts. After using get_posts(), how can I set up the post to be able to use comments_template() - which normally only works on is_single() pages?

    If it's not possible to trick WP into believing I'm single, any pointers as to how I can, more manually, set up comments functionality here would be appreciated.

    Thanks!

    Erik

  2. alchymyth
    Forum Moderator
    Posted 4 years ago #

  3. snawbel
    Member
    Posted 4 years ago #

    Thanks. $withcomments was helpful to know about.

    E

Topic Closed

This topic has been closed to new replies.

About this Topic