6,919 reputation
927
bio website
location 127.0.0.1
age
visits member for 3 years, 1 month
seen 17 hours ago

I sell sea shells by the sea shore.


Nov
2
answered Custom Admin CSS styles to style media uploader?
Nov
2
revised Taxonomy list links to first post in that term
added 643 characters in body
Nov
2
revised Taxonomy list links to first post in that term
added 706 characters in body
Nov
2
answered Taxonomy list links to first post in that term
Nov
2
comment How can i limit the character length in excerpt?
The last line, $excerpt = $excerpt.'... <a href="'.get_permalink($post->ID).'">more</a>'; is what you can use to define your "read more" link so to speak. You can see there it adds an ellipsis but you can add whatever you like.
Nov
2
comment WordPress SEO by Yoast: Hide Meta boxes in posts for non-admins
@AhmadM Thanks mate. I am aware of the var already being defined, however that does not make it a requisite to pass into the hook/function. In this case the OP wants to remove the meta box from the post post_type which is why the initial solution will allow for granular control. However in the case where you want to remove it for all post types then using the already defined var $post_type is satisfactory. What I will do, is edit my answer to include your additional example using the $post_type variable for situations where someone may want to apply this to all registered post_types.
Oct
31
revised Custom Post Types for Support Ticket plugin?
added 1815 characters in body
Oct
31
answered Custom Post Types for Support Ticket plugin?
Oct
30
comment Remove Meta-boxes (Yoast SEO plugin)
No... you need to only add the function snippet above to your functions.php file, nothing else, except change post_type to your required type i.e. post. The references to line numbers in the other answer only explain whats in the plugin file itself for reference on where I sourced further information. Normally you would just get the name of the metabox from the ID parameter on the edit screen. I didnt have yoast installed at time, so I just dug into plugin files
Oct
30
revised WordPress SEO by Yoast: Hide Meta boxes in posts for non-admins
manage_plugins should be activate_plugins
Oct
30
answered Remove Meta-boxes (Yoast SEO plugin)
Oct
30
comment WordPress SEO by Yoast: Hide Meta boxes in posts for non-admins
@Ahmad M thanks for suggested edit but $post_type var and action argument parameter is not required in this instance and does not throw notice/error. Also if you include $post_type var you need to define the post type within the function elsewhere which you did not do, so user would have run this to have it work improperly! In this case its perfectly acceptable to pass in post type name i.e. as 'post' directly into remove_meta_box function. Thanks for suggestion anyway.
Oct
30
revised WordPress SEO by Yoast: Hide Meta boxes in posts for non-admins
No explanation for your edit, see my note.
Oct
30
comment Wordpress API Menu/Submenu Order
@Rob Made a slight adjustment that should help avoid situations where menu items override each other.
Oct
30
revised Wordpress API Menu/Submenu Order
added 884 characters in body
Oct
30
revised Wordpress API Menu/Submenu Order
added 1558 characters in body
Oct
30
answered Wordpress API Menu/Submenu Order
Oct
30
answered How can i limit the character length in excerpt?
Oct
29
revised WordPress SEO by Yoast: Hide Meta boxes in posts for non-admins
added 220 characters in body
Oct
29
answered WordPress SEO by Yoast: Hide Meta boxes in posts for non-admins