1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.
  2. Better Analytics for WordPress Get It Free

Wordpress tag for title?

Discussion in 'WordPress' started by jackslounge, Oct 17, 2006.

  1. #1
    Hey,

    I want to insert the title of a post into its body, if that makes any sense.

    eg,

    --------------
    MUSIC REVIEW
    --------------

    body of post
    MUSIC REVIEW
    body of post

    It needs to be automated, or at least I would very much prefer it to be. I'll show you why when I find an answer :)
     
    jackslounge, Oct 17, 2006 IP
  2. Richie_Ni

    Richie_Ni Prominent Member

    Messages:
    10,729
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    360
    #2
    Add
    to 'single post' in your template file.
    I think you could only add the title before or after the article by doing this.
     
    Richie_Ni, Oct 17, 2006 IP
  3. jackslounge

    jackslounge Peon

    Messages:
    434
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah, I need it to appear in the post. Heres why, in short.

    I have a location, ie folder/folder/file.jpg

    The name of the file is always the title of the post. If there is a bit of code I can replace 'file' with that inserts the title of the post, i will be :D
     
    jackslounge, Oct 17, 2006 IP
  4. jackslounge

    jackslounge Peon

    Messages:
    434
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok, I think i got it, using the RUNphp plugin :D
     
    jackslounge, Oct 17, 2006 IP
  5. jackslounge

    jackslounge Peon

    Messages:
    434
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Awesome, I now have images to show recent posts :). Also, with a generic piece of code, my images are inserted, with formating (size, alt text).

    All I need to do is upload my images (cd covers) with the name of my blog post :D

    To see it in action, its the first link in my sig. I have only updated the necessary code, not far into the past, but it works :)

    I am quite smiley :D Havent been able to play around lately, been to busy with uni..
     
    jackslounge, Oct 17, 2006 IP