Forum Replies Created

Viewing 1 replies (of 1 total)
  • I had this issue with some images not getting excluded as well. After reading the thread, and inspecting the wpipp-image-manager.php code (as well as figuring out the WP database schema) I figured out that all my affected images were ones I had previously resized or cropped – where they got renamed, and had “e numbers” appended to their names.

    I subsequently edited the get_post_id_from_url function in wpipp-image-manager.php to add

    $url_string = preg_replace( ‘/-e[0-9]+(?=\.(jpg|jpeg|png|gif)$)/i’, ”, $url_string );

    AFTER the line

    $url_string = preg_replace( ‘/-\d+x\d+(?=\.(jpg|jpeg|png|gif)$)/i’, ”, $url_string );

    in order to remove the offending “e numbers” before the post id lookup. That seems to have resolved the particular issue I was having.

Viewing 1 replies (of 1 total)