Force hide custom field metaboxes

How can I completely remove the custom fields and the collapse button in the Edit Post/Edit Page custom screen, but without removing the capability to add custom fields with a PHP function? 2 Answers 2 http://codex.wordpress.org/Function_Reference/remove_meta_box function remove_custom_meta_form() { remove_meta_box( ‘postcustom’, ‘post’, ‘normal’ ); remove_meta_box( ‘postcustom’, ‘page’, ‘normal’ ); } add_action( ‘admin_menu’ , ‘remove_custom_meta_form’ ); … Read more

How to remove slug metabox from custom post type’s page?

I just discovered a new meta field on the newly created custom post type page. The meta name is slug, and it’s under the wp editor field. What’s that, and how can I remove it? 2 Answers 2 You can remove the slug metabox from a post type with remove_meta_box: add_action( ‘add_meta_boxes’, ‘my_add_meta_boxes’ ); function … Read more

meta query not showing any results?

I’m trying to show result for a custom field that is not empty on a custom post type but getting no results? <?php if (have_posts()) : $args = array( ‘post_type’ => ‘programmes’, ‘meta_query’ => array( ‘key’ => ‘linktovideocatchup’, ‘value’ => ”, ‘compare’ => ‘NOT LIKE’), //’caller_get_posts’ => 1, ); ?> <?php query_posts( $args ); ?> … Read more

Make URL in custom field hyper link

In my WordPress site I have created a custom field for author website link. but I don’t know how to make it hyperlink, so people can click on it to surf that website. at this moment it only shows raw text. like: “www.example.com” my code is: <?php echo get_post_meta($post->ID, ‘Author Website’, true); ?> 2 Answers … Read more