Problem:
How to output the URL of the current taxonomy archive?
Solution:
You would need to register a custom shortcode, which does not need any attributes, simply returning the URL from the $_SERVER PHP object:
add_shortcode( 'current-url', function(){ return $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; });
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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+01:00)
This topic contains 2 réponses, has 2 voix.
Last updated by Thomas AMX Il y a 5 années et 6 mois.
Assisted by: Nigel.