Viewing 7 replies - 16 through 22 (of 22 total)
  • Plugin Author theMikeD

    (@themiked)

    The code that pulls the images from the database is using wp_get_attachment_image() to do so. If the image is present, it’ll return the image and if it’s not it’ll return nothing. In your case it’s returning only the site URL, which tells me that it may be due to a config error or something with your specific site, as I can’t reproduce this on any of the sites I manage.

    Please paste the code being used to generate the section of that page that is showing the wrong link.

    kelly-the-kitchen-kop

    (@kelly-the-kitchen-kop)

    I’m having a similar issue since the update. My category pictures aren’t showing up (like here: https://kellythekitchenkop.com/category/recipes-and-information/), but they’re showing up fine in SUBcategories (like here: https://kellythekitchenkop.com/category/recipes-and-information/appetizers-and-dip-recipes/).

    Is there a way to go back to the previous version WITHOUT using a backup? (I don’t want to lose whatever I’ve changed since the backup.)

    Thanks,
    Kelly

    kelly-the-kitchen-kop

    (@kelly-the-kitchen-kop)

    Those links aren’t working for some reason. Here’s the category page where the pics are NOT not working:

    https://kellythekitchenkop.com/category/recipes-and-information/

    Here is the subcategory page where the pics ARE working:

    https://kellythekitchenkop.com/category/recipes-and-information/appetizers-and-dip-recipes/

    Thanks again,
    Kelly

    Plugin Author theMikeD

    (@themiked)

    I can’t duplicate this, and until I can I can’t fix it ?? Can you put the template used to generate both pages somewhere so I can see it please?

    The old version of the plugin is available, but it requires the older version of genesis as well (prior to 2.3.0)

    kelly-the-kitchen-kop

    (@kelly-the-kitchen-kop)

    Thank you so much for trying to help.

    I’m sorry, but I’m not sure what you’re asking with this request: “Can you put the template used to generate both pages somewhere so I can see it please?” I don’t know what template you mean. Those pages were just made in the backend of WordPress in the “categories” tab.

    If you’d like to email me I’m at [email protected].

    Thanks again, I really appreciate your help!

    Kelly

    Plugin Author theMikeD

    (@themiked)

    ?? That means I need to see the files your theme is using to create the page that is showing both the correct images and the incorrect images.

    I suspect it has to do more with genesis and WP than it does with this plugin…the change the update requires is to address the change Genesis made in how it gets and saves term meta.

    Because I can’t duplicate this problem on the sites I manage, I can’t see it failing. And until i do I can’t figure out the nature of the problem. The only way for me to see it fail is to have admin+ft access to a site it’s failing on. So I’m hoping you’ll be OK with me poking around your site to fix this.

    I’ll email you shortly.

    Plugin Author theMikeD

    (@themiked)

    First of all, a big thank you to Kelly for letting me make a copy of her site so I could diagnose this issue.

    Kelly:

    First, the reason why your first link doesn’t show images and the second does is because the first is a list of sub-categories and the second is a list of posts. So they use different code.

    Second, this is not a problem with the plugin. It’s a problem with the code being used in your custom category.php to pull the image from the database. You can read about it here:

    https://www.studiopress.com/important-announcement-for-genesis-plugin-developers

    but the short version is that as of genesis 2.3.0, $term->meta is no longer populated. This line is causing the problem:

    $image = isset($term->meta['term_thumbnail_id']) ? wp_get_attachment_image($term->meta['term_thumbnail_id']) : '<img src="/wp-content/plugins/genesis-taxonomy-images/assets/images/placeholder.png" />';

    So you’ll need to get that fixed by whoever wrote the custom code for you, if it’s not you that wrote it. You can either do it directly or by using the function called gtaxi_get_taxonomy_image() which is in the plugin for just this purpose.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Genesis Taxonomy Images’ is closed to new replies.