ThemeShaper Forums » Thematic

[closed]

add comments to all pages

(4 posts)
  • Started 9 years ago by jrobben
  • Latest reply from merlinvicki
  • This topic is resolved

Tags:

  1. just trying to use a function to add comments to each page (not posts)
    I could not find a hook inside the content area of a page, but saw anyThematicActionHook somewhere not sure if it is for real.

    <?php
    /* Add Comments to pages  */
    function add_page_comments() {
      if (is_page()) {
    ?>
    <?php comments_template(); ?>
    <?php
    }
    }
    add_action('anyThematicActionHook', 'add_page_comments');
    ?>

    I also tried
    <?php thematic_comments_template(); ?>

    I just figured out that I could add the comments template to the page bottom widget with a php code widget box. But I would rather use a function include like shown above.

    Any suggestions on making this work?

    Posted 9 years ago #
  2. Hi jrobben-

    You shouldn't need the conditional with this hook. Try this:

    function add_page_comments() {
    	thematic_comments_template();
    }
    add_action('thematic_abovepagebottom', 'add_page_comments');

    -Gene

    Posted 9 years ago #
  3. Thanks Gene it worked great, that is two in a row you have got for me ;-). I think I need a cheat-sheet of available hooks.
    changing to resolved.

    Posted 9 years ago #
  4. Hi gene,
    I am in a rough here. I used this function you created, but it doesnt work for me. Am I missing something ?

    vicki

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.