Results 1 to 3 of 3

Thread: Want to display content specific to single post pages

  1. #1
    dcristo is offline Newbie Net Builder
    Join Date
    Jun 2009
    Location
    Australia
    Posts
    124
    Thanks
    1
    Thanked 17 Times in 16 Posts

    Want to display content specific to single post pages

    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.

    What php code would I add to thesis hook after post?

    Thanks in advance for the help.

  2. #2
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,034
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    Quote Originally Posted by dcristo View Post
    Am I correct in assuming that I use the conditional tag is_single() to display content specific to single post pages in wordpress?
    That's the way I read Conditional Tags.

    But the best thing is probably just to try it?
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  3. #3
    dcristo is offline Newbie Net Builder
    Join Date
    Jun 2009
    Location
    Australia
    Posts
    124
    Thanks
    1
    Thanked 17 Times in 16 Posts
    Yeah, I ended up playing around with it and got it to work. Here is the code for anyone wanting to know, using the open hook plugin.

    Code:
    <?php if (is_single() ) { ?>
    // HTML code here
    <?php } // if is_single()… ?>

  4. Thanked by:

    Will.Spencer (23 August, 2009)

Similar Threads

  1. Replies: 7
    Last Post: 28 November, 2011, 07:12 AM
  2. Replies: 0
    Last Post: 25 January, 2010, 02:19 AM
  3. Replies: 1
    Last Post: 26 November, 2009, 20:05 PM
  4. Sulumits Retsambew post content Need to review
    By sulumitsretsambewcontest in forum Site Reviews
    Replies: 1
    Last Post: 20 May, 2009, 10:55 AM
  5. Large pages content problem
    By almannai in forum Translation Script Support
    Replies: 1
    Last Post: 9 May, 2009, 02:25 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •