• 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/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter RachelNabors

    (@rachelnabors)

    Ah-ha! I had to put global $taxonomy_images_plugin; up with the global declarations:

    global $mfields_taxonomy_shortcode_templates;
    global $taxonomy_images_plugin;

    Plugin Author Michael Fields

    (@mfields)

    All right, I’m totally bastardizing this plugin because it can do something fantastic and rare: paginate get_terms.

    Cool. Thanks! A few people requested the functionality and I was bored one day so I decided to see if I could make it work. Glad you find it useful!

    It seems like you answered your own question here. Please let me know otherwise.

    -Mike

    Plugin Author Michael Fields

    (@mfields)

    BTW… I would suggest that you not incorporate the Taxonomy Images Plugin into your Theme. I have a new version that I’m releasing this morning. There have been no bug reports on the release candidate, so I think it’s good to go. Also, WordPress has been planning on improving the media uploader in an upcoming version. When this happens this plugin will definitely need to be updated which means your theme will also need to be updated, which might be a lot more work than upgrading the plugin via Administration Panels. Feel free to do what you wish, just trying to save you a headache down the line ??

    Thread Starter RachelNabors

    (@rachelnabors)

    Let me clarify, the bastardized pagination plugin is going into functions, since there will be no way to “upgrade now!” easily. The taxonomy images plugin will remain a plugin, although I call one of its functions in the bastardized pagination plugin.

    Does that make sense? Is that sound?

    I would looooove it if you could post a breakdown of how you managed to paginate get_terms. Seriously, would love.

    Plugin Author Michael Fields

    (@mfields)

    Does that make sense? Is that sound?

    Sounds good to me. I deprecated all of the taxonomy image plugin’s object’s methods in 0.6. I left fallbacks for everything that I had previously documented though. For best results, I would upgrade to the new functions. 0.6’s source is well documented so it should be easy to figure out what to do. I’ll probably leave all of the deprecated funtions for a long time to come.

    I would looooove it if you could post a breakdown of how you managed to paginate get_terms. Seriously, would love.

    Sounds like a good idea for an article. Totally booked up with other projects at the moment – got a new theme coming out soon. I’ll see what I can do when I have time. I’m just about the slowest writer ever.

    Thread Starter RachelNabors

    (@rachelnabors)

    Heads up, you can see the images and shortcode working in tandem at my new comics archive. Nice! I couldn’t have done this without your work, Michael. Thank you!

    Plugin Author Michael Fields

    (@mfields)

    Sweet! Is it used to create “Cast” in the sidebar?

    Thread Starter RachelNabors

    (@rachelnabors)

    Sure is! Actually, I used it for all the archive images as well. They’re a custom taxonomy, too.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Taxonomy List Shortcode] Using Taxonomy Images with Shortcode?’ is closed to new replies.