Critical error on image display

Do you care about the admin restrictions for serving these files? Without seeing your exact error my guess would be that in ms-files.php, WordPress is not fully loaded at the point where is_super_admin() is called. So again if you don’t care about this super admin check then you can modify .htaccess to serve the files … Read more

Convert all images on S3 to webp format

You also need to update the database so that the converted images are referenced properly instead of the old ones. If you delete the old format images without updating the database, you will break the site as none of the old images will be found. The plugin “WebP express” will help with this, but I … Read more

How to disable featured image from inside of the blog post?

The Newspaper theme by tagDiv offers options to hide the featured image from single posts directly from its theme panel. Here’s how you can do it: From your WordPress Dashboard, go to the “Newspaper” -> “Theme Panel” option. Once you’re in the theme panel, navigate to the “Post Settings” tab. Here you will find an … Read more

‘apply_filters’ is breaking some shortcodes/HTML but not all

try this: function reload_article_content() { check_ajax_referer( ‘reload_article_nonce’, ‘security’ ); $post_id = intval( $_POST[‘post_id’] ); // only run on posts where ‘is-live’ custom field is set to ‘true’ if ( get_post_meta( $post_id, ‘is-live’, true ) === ‘true’ ) { $post = get_post( $post_id ); if ( $post ) { $GLOBALS[‘post’] = $post; setup_postdata( $post ); ob_start(); … Read more

Featured Image add tab

WordPress does not have a built-in hook or function on the PHP side that allows you to directly add a new tab to the Media Library Modal window. To achieve this, you need to use JavaScript to modify the media uploader interface. You can add a custom tab to the WordPress Media Library modal by … Read more

medium_large image size not displaying properly on the frontend?

I saw this problem recently on a project, and the answer is to disable responsive image markup. Simply add the below code into your theme’s functions.php and you are golden: add_filter( ‘wp_calculate_image_srcset’, ‘__return_false’ ); Ref: How do I disable responsive images in WP 4.4? Afterwards, you can insert the Medium Large a.k.a. medium_large images (if … Read more