7,508 reputation
1029
bio website
location 127.0.0.1
age
visits member for 3 years, 3 months
seen 4 hours ago

I sell sea shells by the sea shore.


Nov
2
answered Programmatically changing role information; editing role name and deleting
Nov
2
comment How to Make infinite loop of post
@MridulAggarwal wp_reset_postdata shouldn't be there, I left that in. Please feel free to edit this question I will accept your revisions and thank you too! :)
Nov
2
comment Advanced custom fields - taxonomy terms images
Yeah that's definitely an easier way to get the custom field, as that's the inbuilt API call for the ACF plugin.
Nov
2
comment How to Make infinite loop of post
@MridulAggarwal After re-reading the OP question a couple of times I think he refers to looping posts "continuously" so that when you reach the end of the loop (last post), the first post will show again, and so on. Just was worded in a difficult way because it could mean a couple of things..
Nov
2
comment Different templates for parent and children categories/taxonomies
get_term_by() is what you want instead...
Nov
2
comment Different templates for parent and children categories/taxonomies
@Cthulhu As I suspected would be the case, however as you did not stipulate, I've shown the rudimentary example which is "ok" for light, infrequent use. However in your instance, Mridul examples how to do it more dynmically with get_template_part
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?