![]() |
How to carry a query string in wordpress post.
Im trying to figure out how to carry an affiliate id in posts through an rss feed in wordpress. Is there a string of code i can add on to my links in my post? Or is there a plugin that can manage this?
|
I use runPHP
http://www.nosq.com/blog/2006/01/run...for-wordpress/ allows you to use PHP in your posts. There might be a better way, but this works for me. |
Quote:
Thank You |
Anyone know how to carry a query string in the post titles or a way to include it in the permalinks? Im thinking maybe htaccess?
|
|
That was perfect Beaver Bob. How do you do the rss feeds? Ive searched through all the files trying to find a href spot for my query string. Is this done a different way?
|
you have to modify the feed-rss file in the wp-includes directory. Don't look for href but look for everywhere that displays a link.
|
Beaver Bob Thanks for your help so far. Im still having problems. In my feeds-rss file I found the two bits of code
Code:
Code:
Code:
Code:
So I thought i would go to feed.php and add my string to the the_permalink_rss function. This worked half ass, it will display my aff_link_id= but it will not display the actual affiliate number. I was going to try and use session variables to carry the affiliate number, but i cant seem to get it to work|banghead|. Any suggestions? |
try this:
Code:
?> |
I had to add it to the function
Code:
function the_permalink_rss() { |
hope it works out for you!
|
All times are GMT -4. The time now is 04:25 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc