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.

Add the word "blog" into URL structure

Discussion in 'Content Management' started by rantgatorant, Jan 9, 2011.

  1. #1
    Hi Guys,

    Got a quick wordpress problem, hope you can help!

    I want two sections on my site, one for news and one for a blog.

    I'm looking for the URLs to resolve like this:

    http://www.example.com/blog/1/hello-world

    http://www.example.com/news/1/hello-world

    So, basically to word news or blog followed by post_id and post_name - should be simple, right? The only problem is I've tried everything to get this structure but nothing works.

    I've installed wordpress on the root, is using a sub-drectory the only way to get the structure I'm looking for? I don't really want to use the category page (create a parent blog category), plus I heard this causes performance issues?

    Any help is GREATLY appreciated, particularly if you have a resolution! :) Thanks.
     
    rantgatorant, Jan 9, 2011 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    radiant_luv, Jan 14, 2011 IP
  3. jezzz

    jezzz Notable Member

    Messages:
    4,884
    Likes Received:
    190
    Best Answers:
    0
    Trophy Points:
    200
    #3
    You are trying to jumble both post id and post name together which is not possible in Wordpress! Post Id is a number generated of your posts in numeric order where as Post Name comprises of excerpt from the post! Therefore you can use one option at a time either post name or post id
     
    jezzz, Jan 16, 2011 IP