i have been searching of these information 2 days now however i haven't founud an entire solution. Hope a number of you can produce outside assistance, a great api or perhaps an example could be great.

I am creating a wordpress plugin for wordpress having a widget that shows some tags.

So i have to produce a custom get parameter, let us refer to it as 'mypar' and i am in a position to create the right link just like as without permalinks enabled with something similar to:

global $wp_rewrite;
$par = 'mypar';
$pagestruct = $wp_rewrite->get_page_permastruct();
 if ( '' != $pagestruct){
// permalinks
$link = get_settings('home') . "/$par/$val";
 } else {
link = get_settings('home') . "/?$par=$val";
}

than i recieve the parameter sent as from http://www.webopius.com/content/137/using-custom-url-parameters-in-wordpress

but this does not work when permalinks are enabled, i recieve the 404 page, it is possible to reason for your?

interesting help