Need to edit template, which one?

Discussion in 'WordPress' started by bob25, Jan 27, 2009.

  1. #1
    I need to add some code to my template, but I don't know which one to edit. I already tried the author, but theirs no contact email or help desk.

    The plugin is "Get Random Page" and I'm using Wordpress 2.7

    Basically I want to insert the code so the random page appears after the header, but before the post. The code unmodified is:

    get_random_page($child_of)

    What template should I look to add the code?

    If anybody is familiar with this script, do I need to modify the code first?

    Thanks
     
    bob25, Jan 27, 2009 IP
  2. TheNoose

    TheNoose Peon

    Messages:
    1,005
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can either add this to the header.php right after all other content held in the header, or you can add it to the body.php (sometimes singlepost.php or something similar - I forget the name and it differs from template to template) right before all the other content.
     
    TheNoose, Jan 27, 2009 IP
  3. bob25

    bob25 Well-Known Member

    Messages:
    1,519
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Yeah okay, that's what I was thinking but I wanted to be sure. I do have the single post, if I can't add it there I'll try the header.

    Thanks
     
    bob25, Jan 27, 2009 IP