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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)