Reputation
322
Next privilege 500 Rep.
Access review queues
Badges
3 12
Newest
 Necromancer
Impact
~20k people reached

Apr
8
comment Set default image sizes in WordPress to hard crop
the benefit from this solution is, that you still can set the measurements in the wp setting. sweet.
Jan
14
revised Give Editor Access To Sidebar
type error
Jan
14
suggested approved edit on Give Editor Access To Sidebar
Dec
29
awarded  Necromancer
Dec
18
revised Sort search with posts_orderby
the 2, that i changed to one, indicated the arguments, that the function order_search_by_posttype accepts. its just 1, so this is the correct value
Nov
9
revised Display posts from the same category using next/previous post link
added 16 characters in body
Nov
9
revised Display posts from the same category using next/previous post link
added 117 characters in body
Nov
9
revised Display posts from the same category using next/previous post link
added 128 characters in body
Nov
9
revised Display posts from the same category using next/previous post link
added 61 characters in body
Nov
9
revised Display posts from the same category using next/previous post link
minor code cleanup
Nov
9
answered Display posts from the same category using next/previous post link
Nov
9
suggested approved edit on Display posts from the same category using next/previous post link
Oct
21
revised Disable image attachment links
added another method
Oct
21
suggested approved edit on Disable image attachment links
Oct
15
comment Query if audio attachment AND/OR custom field
please go ahead and try around. post your progress here and lets see how this works out..
Oct
14
comment Query if audio attachment AND/OR custom field
maybe try to merge two queries..? (i would build it with WP_Query, but looks promising (don't know, if that works, only saw the 'post_mime_type' argument in get_posts)) or go hard on sql query. should be possible, but since i never did it myself, i'm not absolutely sure.
Oct
1
comment Query if audio attachment AND/OR custom field
hmm. since you use 'post_mime_type' you automatically exclude all the other ones. why don't you use another custom field for your attachments and query for those..?
Oct
1
revised Can I exclude a post by meta key using pre_get_posts function?
forgot to close the functions
Oct
1
suggested approved edit on Can I exclude a post by meta key using pre_get_posts function?
Aug
18
comment Have different search results template depending of custom post type searched
maybe they changed that, but i had to write $_GET['post_types']) instead of $_GET['post_type']). note the 's'. so you now can submit multiple post-types, simply separate those with a comma.