• Resolved the_enn

    (@the_enn)


    Hi, I’m using the current version 1.7.3 on a WP 6.2 site and the plugin works great when setting the default featured image, but if I unset it, any posts that didn’t previously have a default featured image still have that default image set. This feature used to work on a prior WP version. Also o tested in Divi and another WP theme with same results.

    Thoughts?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jan-Willem

    (@janwoostendorp)

    Hi,

    This is a bit terrifying to hear.
    But probably not that hard to fix.

    I’ve checked a couple of your other posts, so I’m assuming you can do a bit of code. apologies if this gets to technical.
    And please let me know if it is technical. And we will try another way to help.

    The theory

    What probably is going on is a other plugin or theme is saving the DFI image id in post meta (meta_key:_thumbnail_id).
    Can you confirm this by running the following query?

    SELECT * FROM wp_postmeta WHERE meta_key = '_thumbnail_id' AND meta_value = 777; 

    Replace 777 with the DFI image id. And you probably have a different prefix than wp_ on your postmeta table.

    If you get a bunch of results. Then this theory is correct.

    The easy fix

    If this is the case you can easily delete these by running:
    ? Always create a backup of the database before editing mysql?

    DELETE FROM wp_postmetaWHEREmeta_key= '_thumbnail_id' ANDmeta_value` = 777;

    Again, replace the 777 and the prefix.

    Finding the source of the problem

    Does the DFI show on new posts (with the plugin enabled)?
    And how does it show with the plugin disabled?

    Can you test this with Divi and an other theme?

    Let me know how it goes.
    And also let me know if this is to difficult.

    Jan-Willem.

    Plugin Author Jan-Willem

    (@janwoostendorp)

    Hi,

    Did my suggestions help?
    Let me know, otherwise I’m closing this ticket.

    Thread Starter the_enn

    (@the_enn)

    Hi there, I appreciate your response, and apologies that it’s taken me this long to respond as I didn’t see the thread update notification…

    Unfortunately, I don’t have access to the coding environment to test that change. We use a vendor called CampusPress for academia sites and we can’t run our own PHP code to test your change.

    Plugin Author Jan-Willem

    (@janwoostendorp)

    Hi,

    What access do you have?
    Can you install plugins?
    Without access to code this will be quite impossible to test.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing default featured image not working’ is closed to new replies.