• Resolved njs

    (@njs)


    Hi
    I have updated the plugin to v3.4.3 and am now experiencing the following problem…

    I have a custom function that runs within a wp_query loop and it calls wp_get_attachment_image_src(). This must in turn make use of the Custom Upload Dir plugin, which is overriding the loop’s $post variable with the ID of the current page (I need it to remain the ID of the current post in the loop).

    Line 198 of custom_upload_dir.php seems to be the culprit:

    if($postID){
        $post = get_post($postID);
    } ...

    Is there a possible solution to this?

    https://www.ads-software.com/plugins/custom-upload-dir/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘global $post variable is being set’ is closed to new replies.