Here is an example page, using the shortcode in a widget to the right:
http://www.amaravati.org/audio/
Select any item from the dropdowns and submit, the redirect is using the name of each custom taxonomy (such as fpmtp_speakers should use the slug ‘speakers’).
The site is using the permalink structure /%postname%/
Saving permalinks again does not help.
For clarification, this is for custom taxonomies with rewrite->slug defined, different than the taxonomy slug itself.
I think I solved this, by editing the search-filter.php file, around line 865:
//**due to some new wierd rewrite in WordPress, the first taxonomy which get rewritten to /taxonomyname/taxonomyvalue only uses the first value of an array - so do it manually
if(get_option('permalink_structure')&&($taxcount==0))
{
$key_taxonomy = get_taxonomy( $key ); // Get the taxonomy to see if there is a rewrite slug
$tax_path = (isset($key_taxonomy->rewrite)&&isset($key_taxonomy->rewrite['slug']))
?
$tax_slug."/".$taxs."/"
:
$key."/".$taxs."/";
$this->urlparams .= $tax_path;
}
else
{
if(!$this->hasqmark)
{
$this->urlparams .= "?";
$this->hasqmark = true;
}
else
{
$this->urlparams .= "&";
}
$this->urlparams .= $key."=".$taxs;
}
Previously, the slug was simply $tax_path = $key."/".$taxs."/"; – not looking for the rewrite slug (just taking the param from the request).
I hope this can be of help – and hopefully the plugin can be amended for the next version?
A mistyping above, the $tax_slug is a variable I removed again. Updated:
if(get_option('permalink_structure')&&($taxcount==0))
{
$key_taxonomy = get_taxonomy( $key );
$tax_path = (isset($key_taxonomy->rewrite)&&isset($key_taxonomy->rewrite['slug']))
?
$key_taxonomy->rewrite['slug']."/".$taxs."/"
:
$tax_path = $key."/".$taxs."/";
$this->urlparams .= $tax_path;
}
Hey there thanks so much for this – there was clearly something wrong in the code, I’m looking to do an update in the next couple of days and will update to use the correct slug.
Thanks
Really thanks, It really bothered me and I was going to disable the plugin or remove custom slugs … please @designsandcode Update it.
Hi all thanks for your patience – the new update has this fix in it.
Thanks @iohannis – I modified your code slightly but that was spot on.
Thanks
Ross
@designsandcode glad to be of help 🙂