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 - Remove Subcategories from URL?

Discussion in 'Programming' started by dzinga1, Apr 10, 2011.

  1. #1
    My permalinks are set to /%category%/%postname%.html

    Is it possible to remove subcategories from URL in Wordpress. For example

    mysite.com/category/subcategory/post.html

    Is it possible to remove the "subcategory" part and make it just

    mysite.com/category/post.html

    Thanks in advance guys!
     
    dzinga1, Apr 10, 2011 IP
  2. dzinga1

    dzinga1 Active Member

    Messages:
    610
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    78
    #2
    I managed to solve it with hikari category permalink
     
    dzinga1, Apr 10, 2011 IP
  3. sumitnarayan

    sumitnarayan Greenhorn

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #3
    Hi dear,

    Just follow the below steps to remove the "subcategory" from URL on Worpress.

    1. Ligin to your wordpress dashboard.
    2. Go to the Settings >> permalinks.
    3. Check the Custome Structure and write this code "/%category%/%postname%/"

    For ref. check the below imgae;
    Wordpress - Remove Subcategories from URL.jpg
     
    sumitnarayan, Aug 25, 2015 IP
  4. locals

    locals Well-Known Member

    Messages:
    1,677
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    153
    #4
    yeah, definitely do not use a plugin for that... that is the most basic of basic things. Plugins can do so much more, considering that is a built in feature of WP since WP version -1.1
     
    locals, Sep 12, 2015 IP