Forum Moderators: open

Message Too Old, No Replies

Can wordpress categories point to specific url?

wordpress categories specific url

         

iogd

4:11 pm on Aug 29, 2009 (gmt 0)

10+ Year Member



If I wanted to point a category to a specific url in wordpress, could it be done?

For example, I want the below url which is currently automated

[mysite.com...]

to point to

[mysite.com...]

lorax

5:27 pm on Aug 30, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld!
If I understand you correctly the answer is yes!

Go to Settings >> Permalinks and then use custom to define the URL structure /%postname%/

Get yourself a copy of the Top Level Categories plugin and install it and you should be good to go.

iogd

5:48 pm on Aug 30, 2009 (gmt 0)

10+ Year Member



Hi,
Thanks for your reply. What I am looking to do is direct the categories to an entirely different url. So it does really matter what the category url reads, the point is it must go to a different page.

Eg: mysite.com/category >> mysite.com/events

I am placing a WP on each category, so I can have multiple homepages for each category like you would see at [guardian.co.uk...]

Can you do that at all?

Thanks,

Ross

lorax

5:58 pm on Aug 30, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes you can but it's a bit more complex. You'll need to modify your htaccess file to do this.

Options +FollowSymlinks
RewriteEngine On
RewriteRule ^fakecategoryname/$ [mydomain...]

Or something like it. You should probably read up on htaccess and server status codes before you do this though.

[httpd.apache.org...]

<added>

Another thought - again, if I'm following your intent. You could simple create a static page and put links to all of the posts/pages you want on it then add this page to your navigation. You wouldn't need to modify htaccess this way.

ergophobe

4:48 pm on Aug 31, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have to agree with lorax's added thought. If it's one site, I would avoid a WP install for each category, unless you want each catgory to look and feel like a separate, but related site. Even then, I would just use multiple templates.

If you separate the categories on different installs, then WP internal search won't work, updates will be more trouble, and so on.

Also, you can find plugins that will give more control over your category pages, so you can customize them more.

It seems like there are better ways to skin that cat than having 12 WP installs, unless I'm just not getting what you're doing.

iogd

5:01 pm on Aug 31, 2009 (gmt 0)

10+ Year Member



No I agree entirely. I think providing several skins with control over where the categories point would be ideal.

I want a homepage for each section essentially, as each section has mulitple sub-sections too.

ergophobe

10:03 pm on Sep 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



So do you still have a question, or does that give you enough to go on?

iogd

10:09 pm on Sep 1, 2009 (gmt 0)

10+ Year Member



Well, what is needed is a new plugin! So thats the next move.

ergophobe

11:11 pm on Sep 1, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yeah, I've seen plugins that do what you want, but I'm sorry to say that I forget the name, so I would need to just search for it like you.

And you can build themes with different templates, but typically they get selected by the page author. Fine if you're the only author. Getting a theme that changes by category might require some scripting.