YD Spread Parameter
This plugin will automatically take care of “spreading” a parameter on all the links inside a WP or WP MU blog. It will add the given parameter at the end of any link inside the site.
This can be used to propagate identification tokens (for on-line shopping sites, etc.), or parameters related to the display (eg. used with WP Theme Switcher to choose which theme should be used as a display template).
Funding Credits
Original development of this plugin has been paid for by Wellcom.fr. Please visit their site!
Le développement d’origine de ce plugin a été financé par Wellcom.fr. Allez visiter leur site !
le 24 August 2010 à 2:11 h
it doesn’t seem to work on all links… see http://gankahhwee.com/blog/?wptheme=candid or http://apps.facebook.com/gankahhwee/… it seems that only 2 links are suffixed with the parameters… please advice… thanks!
le 25 August 2010 à 18:08 h
@gankahhwee:
– This is most probably due to a conflict with another plugin. Can you try disabling your other plugins one by one and see if one of your plugin blocks the link-rewriting function?
– Although I don’t see why, this could also be related to another specific issue with your site: is the base address of your blog http://gankahhwee.com/blog or is it just http://gankahhwee.com/ ? Maybe the fact the 2 types of addresses are used might complicate things a bit.
le 30 August 2010 à 15:50 h
oh.. the base address of the blog is actually http://gankahhwee.com/. how can i modify the code so that it can cater to that? thanks.
le 17 September 2010 à 14:24 h
http://www.yaramazgenclik.com Doesn’t Word
le 28 September 2011 à 0:30 h
This plugin works great in Version 3.2.1, but is there a shortcode I can use to display the parameter on a page.
I also have a hard-coded nav due to style requirements. How can I capture the parameter for a hard-coded link?
Will send donation if we can make this work, or you can send a quote.
le 28 September 2011 à 19:11 h
@Donna
I don’t think you need a shortcode to display the parameter in apage. Just grab it from the query string : < ?php echo $_GET[‘your_parameter’] ?>
le 20 February 2012 à 0:07 h
Hello Y.
Thank you for the great idea to create this plugin. BUT…it’s not working with my WP installation v. 3.3.1
I switched off all other plugins but this didn’t change anything.
Will you work on a future version? Would be so great!!!
Thank you and best regards
Danyel
le 25 January 2017 à 7:07 h
2017/01/25 05:38:11 [error] 2263#2263: *43097 FastCGI sent in stderr: “PHP message: PHP Warning: ob_start(): non-static method yd_spreadparam_links::filter() should not be called statically in /var/www/taxistartup.com/wp-content/plugins/yd-spread-parameter/yd-spread-parameter.php on line 560” while reading upstream, client: 107.178.195.216, server: taxistartup.com, request: “GET /?ref=producthunt HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “taxistartup.com”
Please help not to hide the warning but fix