hi all
i want to change my wordpress site category url.
now its like this mysite.com/?cat=1 ,but i want to change it like this
mysite.com/?category=sports . i dont know how to make this.

pls help me to do this. tnx in advnc

Recommended Answers

Instead of this structure mysite.com/?category=sports. why dont you try the permalink structure like this mysite.com/category/sports? Structure which i mentioned also good for SEO.. :)

Login into your Wordpress Dashboard Go to Settings -> Permalinks

Jump to Post

All 3 Replies

Instead of this structure mysite.com/?category=sports. why dont you try the permalink structure like this mysite.com/category/sports? Structure which i mentioned also good for SEO.. :)

Login into your Wordpress Dashboard Go to Settings -> Permalinks

tnx 4 ur reply @ mrvijayakumar
but i want to do it without changing permalink from default...
can u help me to do that...

This is not a proper solution, but it may help you somewhat

$category_id = get_cat_ID($_REQUEST['category']);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.