getButterfly Logo getButterfly

If you are not using our Noir UI theme, you can easily create a taxonomy page for any theme and view the image archive using the ImagePress grid.

* ImagePress taxonomy template
* Taxonomy template with queried parameter as shortcode argument.
* @package ImagePress
* @subpackage Template
* @since 7.0.0

<?php get_header(); ?>

<section id="content-wide" class="taxonomy" role="main">
    <h1 class="entry-title"><?php echo get_queried_object()->name; ?></h1>
    // Get taxonomy term from WordPress query
    $ip_taxonomy_term = sanitize_title(get_queried_object()->name);

    // Display shortcode based on queried taxonomy term
    echo do_shortcode('[imagepress-show category="' . $ip_taxonomy_term . '"]');

<?php get_footer(); ?>

Note that you might need to make some changes in order to accommodate your theme’s structure.

Subscribe to getButterfly Blog

Once a week or so we send an email with our best content. We never bug you, we just send you our latest piece of content.

If you found any value in this post, agree, disagree, or have anything to add - please do. I use comments as my #1 signal for what to write about. Read our comment policy before commenting! Comments such as "Thank you!", "Awesome!", "You're the man!" are either marked as spam or stripped from URL.

Leave a Reply

Your email address will not be published. Required fields are marked *