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.

Wordpress pros: How to add category name to post title??

Discussion in 'WordPress' started by donkevlar, Jan 8, 2007.

  1. #1
    For a certain blog i'm doing, a music news site, I will have multiple RSS feeds going into multiple categories. 1 category per artist. The post titles in the original articles won't usually mention the artists name, so that would make the first page of the site quite confusing.

    So say I have category "rolling stones", and the post title is "Tour dates for 2007". I'd want that to post as "Rolling Stones: Tour dates for 2007".

    Can anyone send me in the right direction? I'm sure its easy if you can code.

    thanks in advance.
     
    donkevlar, Jan 8, 2007 IP
  2. donkevlar

    donkevlar Peon

    Messages:
    136
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No pros here i guess? :D
     
    donkevlar, Jan 9, 2007 IP
  3. kojakfilth

    kojakfilth Notable Member

    Messages:
    3,000
    Likes Received:
    213
    Best Answers:
    0
    Trophy Points:
    210
    #3
    having the same problem as this one..
     
    kojakfilth, Sep 25, 2007 IP
  4. brandweb

    brandweb Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think the easiest way would be to edit the template and RSS feed files to put the category name before the title in the actual code. Each theme is different, but if you want help just PM me. You could probably do the same with a custom plugin, but I have yet to try coding one of those :)
     
    brandweb, Sep 25, 2007 IP
  5. poseidon

    poseidon Banned

    Messages:
    4,356
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Use All in One SEO Plugin. It does EXACTLY what you are looking for ...
     
    poseidon, Sep 25, 2007 IP
  6. kojakfilth

    kojakfilth Notable Member

    Messages:
    3,000
    Likes Received:
    213
    Best Answers:
    0
    Trophy Points:
    210
    #6
    It didnt work. when you add the %category_title% after the post title at that plugin. The blogpost title will appear like this "Post Title - category_title% the category title didnt appear as i expected
     
    kojakfilth, Sep 26, 2007 IP
  7. bilirkishi

    bilirkishi Well-Known Member

    Messages:
    213
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #7
    bilirkishi, Sep 26, 2007 IP
  8. kojakfilth

    kojakfilth Notable Member

    Messages:
    3,000
    Likes Received:
    213
    Best Answers:
    0
    Trophy Points:
    210
    #8
    kojakfilth, Sep 26, 2007 IP
  9. brandweb

    brandweb Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    AIO SEO Pack just affects the page title in the browser. You'll still need to edit the theme/RSS to display the category
     
    brandweb, Sep 26, 2007 IP
  10. tariq_ahmed26

    tariq_ahmed26 Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    hi,

    i did something black :S its for some specific category...

    what i did in <title> tag:

    if (is_single()) {
    if ( in_category( 'Boxing' )) {
    echo 'Boxing: ';
    }
    wp_title();
    }

    this is for showing a single category if you have the post in some more categories and/or sub categories,
     
    tariq_ahmed26, Feb 5, 2011 IP
  11. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Use Taxonomies. A good introductorial tutorial can be found in Justin Tadlock's blog along with several folowup artices ... see taxonomies on his blog.
     
    Dodger, Feb 5, 2011 IP