Need help with wordpress 2.6 tags.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
esmarts
Forum Newbie
Posts: 14
Joined: Fri Aug 08, 2008 10:05 pm

Need help with wordpress 2.6 tags.

Post by esmarts »

First off I am almost going to leave it here with what I got. I dont know if anyone here can help me but I sure would like to think it. lol

Ok here is what I got so far. I designing a directory. The directory is implated in a post which category name is

?cat=3

by the defualt permalinks setting. Ok when I click on a link in the directory it is taking me to the sub category and not puting the main category name in the url.
Example when I click on a link in the directory
The Url is

http://localhost/&wp_dir=add

I need it to pick up and place the main category name in the link as well

example of what i need the link to be.

http://localhost/?cat=3&wp_dir=add


if you know about wordpress and how this thing should work please please help me out here.

Help would be great
Thanks
filippo.toso
Forum Commoner
Posts: 30
Joined: Thu Aug 07, 2008 7:18 am
Location: Italy
Contact:

Re: Need help with wordpress 2.6 tags.

Post by filippo.toso »

Have you tried using a filter for post_link?

http://codex.wordpress.org/Plugin_API/Filter_Reference

It should let you modify the permalinks generated by WP with anything you want.
Post Reply