7,009 reputation
928
bio website
location 127.0.0.1
age
visits member for 3 years, 2 months
seen 2 days ago

I sell sea shells by the sea shore.


Nov
2
answered How to Make infinite loop of post
Nov
2
answered Different templates for parent and children categories/taxonomies
Nov
2
revised Custom Admin CSS styles to style media uploader?
edited tags; edited title
Nov
2
comment Custom Admin CSS styles to style media uploader?
No problem, the Codex is a great resource to begin with, you can get up to speed on many of the API functions as well as other WP based concepts. Although not the only resource, its a good starting point as a beginner (assuming you are?). Searching WPSE is also an even better idea too, the wealth found in answers here is unparalleled to that of any single site. Any further questions you have along the way - just start a new thread. All the best.
Nov
2
revised Custom Admin CSS styles to style media uploader?
added 37 characters in body
Nov
2
comment Custom Admin CSS styles to style media uploader?
The reason is that, the stylesheet that you are using in your theme only gets applied to the front end, not the admin. That's why you need to tell WordPress "Hey I want you to queue up this file on the backend". Which by the way I've made an update to my code, so please adjust yours to reflect this change (using is_admin()). You can use your existing stylesheet in the example if you want but then you would be loading unnecessary styles into your admin area that could conflict. Its always best to separate your styles for logic and best practice purposes regardless of who its for.
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.