Jake Vanderwerf
2026-03-29 275c0d74cd68677622a5431505c5c870c473063d
inc/utility/Image.php
@@ -72,8 +72,17 @@
      if ($addLink) {
         if (!$postSlug) {
            global $post;
            $postSlug = $post->post_name;
            if (is_singular()) {
               global $post;
               $postSlug = $post->post_name;
            }else if (is_tax()) {
               $tax = get_queried_object();
               $postSlug = jvbNoBase($tax->taxonomy);
            }elseif (is_post_type_archive()) {
               $obj = get_queried_object();
               $postSlug = jvbNoBase($obj->post_type);
            }
         }
         $full = wp_get_attachment_image_src($ID, 'full');