Get taxonomy name with url in a php page
-
Hi everyone,
i downloaded pods thinking that create taxonomies and publish them in a page was quite user friendly, but actually if you are not a programmer (me for instance) i think that is quite a “mission impossible”..
BTW.. my problem is that i need to display some taxonomies with link in a list of event posts, what i done until now was to:1) create the new taxonomy setting website type, in order to have the possibility to assign an URL to the taxonomy
2) create a simple Pods template as follows:
<a href="{@special_event_name,esc_url}">{@name}</a>
3) insert in the functions.php the following:
<?php echo do_shortcode('[pods name="aeromobile" template="aereo" shortcodes=1]'); ?>
4) insert in the wp-config.php the following:
define('PODS_SHORTCODE_ALLOW_SUB_SHORTCODES',true);
5) insert in the existing php event page the following:
<?php echo do_shortcode('[pods name="aeromobile" template="aereo" shortcodes=1]'); ?>
actually looks quite ok if not for 2 big issues:
1) all the posts in the list have the same taxonomy, even if not checked in the event page
2) if i add more different taxonomies all of them are displayed for each event listed.check please in this page: https://www.totalfly.it/schedule-test/
please do you have any suggestion to help me to solve this issues until i will get old trying to display the taxonomies in the correct way? ??
thanks a lot for your support
- The topic ‘Get taxonomy name with url in a php page’ is closed to new replies.