How to check if it’s edit.php & post_type is set?

Post type is reflected in body as class. It is .post-type-post for posts, .post-type-product for WooCommerce products and must be .post-type-food in your case. So, you can use css rule like that to detect certain post type: body.post-type-food #titlediv input { background: yellow !important; } Post status is reflected only in TinyMCE editor classes, as … Read more

Our Team not showing on website [closed]

From the screenshot, you’re trying to use an [our-team] shortcode which does not exist. You may have deactivated a plugin or made changes to a theme which caused the shortcode to no longer exist. You should look through backups to see what changed and reactivate the plugin or theme that creates the our-team shortcode.

How can I remove commas when adding tags?

Commas aren’t stored in the actual tag, they’re injected when tags are rendered. Whatever your tag-removal solution will be, it’ll happen via your theme files (or a plugin), and not when you input tags in the editor. Here’s a quick shortcode solution for specific usage: Place in functions.php: add_shortcode( ‘tags_no_comma_shortcode’, ‘get_tags_no_comma’ ); function get_tags_no_comma() { … Read more

Remove header text option from the backend

This is controlled by theme as part of custom header feature declaration. Something like this should disable that part of the feature (you might need to adjust, depending on specific theme used): add_action( ‘after_setup_theme’, function () { add_theme_support( ‘custom-header’, array( ‘header-text’ => false ) ); } );

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