how can display a post on home screen without images

This should help you.. <?php function remove_images( $content ) { //Run only on the front page, in your case the homepage if(is_front_page()) { //Remove the images $postOutput = preg_replace(‘/<img\b[^>]++>/i’,”, $content); //Get the first 200 characters only, you can change the number if you want $postOutput = wp_html_excerpt($postOutput, 200); return $postOutput; } return $content; } add_filter( … Read more

Automatically show ‘taxonomy’ meta box by default in Appearance > Menus?

Thanks @guiniveretoo, perfect 🙂 Finally this is how I did (this code is used for the menu page screen options): /* Just use to find your screen_id */ add_filter(‘current_screen’, ‘the_current_screen’ ); function the_current_screen($screen) { if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) return $screen; print_r($screen); return $screen; } /* Just use to display the options … Read more

Add simple field column to the posts screen

Ref. https://codex.wordpress.org/Plugin_API/Action_Reference/manage_posts_custom_column Just use the WP built in action called “manage_posts_custom_column” and in callback check for the correct column and add simple_field value with the function simple_fields_value : add_action( ‘manage_posts_custom_column’ , ‘add_new_column_data_in_posts’, 10, 2 ); function add_new_column_data_in_posts( $column, $post_id ) { switch ( $column ) { case ‘premium’ : echo simple_fields_value(“simple_field_slug”, $post_id); break; } }

Force 3 Column Dashboard Widgets

Yes it is. Paste this code in your theme’s functions.php file. // Change dashboard widget width function change_dashboard_column_width() { ?> <style> @media only screen and (min-width: 500px) { #dashboard-widgets .postbox-container { width:33.3% !important; } } </style> <?php } add_action(‘admin_head’,’change_dashboard_column_width’); To force 2 columns, change the width to 50%. For 4 columns, change it to 25%.

WordPress Screen options does not show any fields

Ok, found it. Not really WordPress related but might be helpful to someone anyway. It was my browser ad blocker plugin. Apparently it adds CSS to pages upon loading. The CSS showed as “inline” in the dev tools inspector but didn’t show at all when viewing page source code. When checking the CSS of the … Read more

techhipbettruvabetnorabahisbahis forumuedusedueduedusedueduedusedusedusedu