• Resolved shiukik

    (@shiukik)


    First of all, this is really a very very good plug-in. It makes things easier a lot!
    Thanks for your effort.

    A minor problem
    I changed the main image of an item, and refreshed the feed manually. However, the image link in the feed doesnt change. It is still the previous image file link.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter shiukik

    (@shiukik)

    Figure out the reason.. it conflicts with the following code (functions.php) which automatically rename images uploaded to WP:

    // randomize upload filenames 
    function htg_randomize_uploaded_filename( $filename ) {
    
     // does it have an extension? grab it
        $ext  = empty( pathinfo( $filename )['extension'] ) ? '' : '.' . pathinfo( $filename )['extension'];
    
        // return the first 8 characters of the MD5 hash of the name, along with the extension
        return substr(md5($filename), 0, 8) . $ext;
    }
    
    add_filter( 'sanitize_file_name', 'htg_randomize_uploaded_filename', 10 );

    Do you have any idea how to fix?
    Thanks

    Hi,

    Thanks for using our plugin and reaching out to us.

    When you change the main image of a product that changed image URL should end up in your feed. Our plugin grabs the URL that is being returned by WordPress/WooCommerce.

    Are you sure your feed is being processed fine and/or not being cached by your browser or caching plugin?

    Thread Starter shiukik

    (@shiukik)

    Hi,

    Thanks for prompt reply.
    Yes if I delete the code mentioned above, your plugin works very fine without any problem. I tried clearing cache but it didnt help ??

    Assuming the issue at hand is sorted and/or our support is no longer required I will close this topic for housekeeping reasons now.

    Don’t hesitate to reach out to us again whenever you need our help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image link doesnt update in the feed’ is closed to new replies.