[Plugin: Taxonomy List Shortcode] Using Taxonomy Images with Shortcode?
-
All right, I’m totally bastardizing this plugin because it can do something fantastic and rare: paginate get_terms.
I am building a theme for a web comic. The chapters are organized by a custom taxonomy. Each comic page is a custom post type.
The archive page needs to list each chapter + its description, link and thumbnail. Instead of linking to the taxonomy term’s page, I have those set to redirect to the oldest post in the taxonomy.
Is it ideal? No. But it’s the best way for my readers to get to the stories they are looking for.
So I took this awesome plugin and stripped out most everything but the pagination. I am calling it in a template with:
<?php echo do_shortcode(“[taxonomy-list tax=’comics_chapters’ per_page=’1′]”); ?>How can I call a taxonomy image in there as well using the plugin Taxonomy Images? This plugin is probably going to end up in functions.php when I done, as it’s very different from the original plugin now and very core to the functioning of the theme.
BTW this plugin is great. There aren’t many taxonomy-based plugins out right now. There’s even less documentation. It’s great to at least have a starting point.
https://www.ads-software.com/extend/plugins/taxonomy-list-shortcode/
- The topic ‘[Plugin: Taxonomy List Shortcode] Using Taxonomy Images with Shortcode?’ is closed to new replies.