Want to display content specific to single post pages

Discussion in 'WordPress' started by dcristo, Aug 17, 2009.

  1. #1
    Am I correct in assuming that I use the conditional tag is_single() to display content specific to single post pages in wordpress?

    I'm using the thesis theme and would like to display content after the post which is specific to blog post pages. I'm using the open hook plugin.

    Some help would be appreciated.
     
    dcristo, Aug 17, 2009 IP
  2. vrktech

    vrktech Well-Known Member

    Messages:
    449
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #2
    vrktech, Aug 18, 2009 IP
  3. freesecrets

    freesecrets Active Member

    Messages:
    83
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #3
    freesecrets, Aug 19, 2009 IP
  4. webprone

    webprone Well-Known Member

    Messages:
    163
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    133
    #4
    To display content after post box in thesis theme

    function your_function_name() {
    if (is_single())
    {
    ?>
    
    
    //Call your Php or Html tag or function here
    
    
    
    <?php
    }
    }
    add_action('thesis_hook_after_post_box', 'your_function_name');
    Code (markup):
    To display content after post in thesis theme

    function your_function_name() {
    if (is_single())
    {
    ?>
    
    
    //Call your Php or Html tag or function here
    
    
    
    <?php
    }
    }
    add_action('thesis_hook_after_post', 'your_function_name');
    Code (markup):
     
    webprone, Aug 19, 2009 IP