This support ticket is created Il y a 2 années et 12 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
hey,
i have taxonomy called "free tags", with the slug "free-tags".
under this, i have many terms. let say, for example's sake: "wisdom", "ignorance", "stupidity".
archive pages have this URL: hidden link hidden link hidden link
how would i display the parent taxonomy slug (e.g in this case: "free-tags") in the term's archive page? what's the right shortcode?
I need this because I want to create a link within the archive page to a search view. something like:
Hey Luo!
Thanks for the code 🙂
I need the "tax" to be the current archive's parent taxonomy (I'm placing the link in the archive view of ALL taxonomies).
Will that be possible?
Thanks!
Ido
Please test as I mentioned above:
slug: [parent_term_info output="slug"]
name: [parent_term_info output="name"]
Make sure they output correct results.
If they do output courrect results, you will need setup the link manually according to your website settings.
If you need more assistance for it please provide a copy of your website, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks https://toolset.com/faq/provide-supporters-copy-site/
thx, but the archive page comesout blank with the code in it:
<a href="<em><u>hidden link</u></em> output='slug']=[wpv-taxonomy-archive info='slug']&wpv_filter_submit=%D7%97%D7%99%D7%A4%D7%95%D7%A9&wpv_sort_orderby=post_title&wpv_sort_order=asc">הצגה על גבי מפה</a>
but I mananged to get this done by using jQuery:
$(".maptag").click(function() {
var url = $(location).attr('href').split('/');
var taxslug = url[url.length-2];
var archiveslug = url[url.length-3]
window.location.href = "<em><u>hidden link</u></em>"+archiveslug+"%5B%5D="+taxslug+"&wpv_filter_submit=%D7%97%D7%99%D7%A4%D7%95%D7%A9&&wpv_filter_submit=%D7%97%D7%99%D7%A4%D7%95%D7%A9&wpv_sort_orderby=post_title&wpv_sort_order=asc";
return false;
});