Reputation
10,161
Next privilege 15,000 Rep.
Protect questions
Badges
16 35
Newest
 Nice Answer
Impact
~390k people reached

Mar
11
reviewed Approve Featured image does not work with images on a post at the frontend?
Mar
11
reviewed Approve Wordpress Multisite FQDN Admin Access
Mar
10
reviewed Approve Wrapping my <li>'s with <a>
Mar
10
comment Can the wp-plugins (Must Use Plugins) URL be targeted for use in functions.php?
Good looking out... core.trac.wordpress.org/browser/tags/4.4.2/src/wp-includes/…
Mar
10
comment User appears twice in a WP_User_Query
No problem... this was a good question; shows you some of the gotchas and inconsistencies as birgie mentioned with WP_User_Query and WP_Query despite that both use WP_Meta_Query. Good luck on finding out where your duplicate meta_key entry is coming from...
Mar
10
comment User appears twice in a WP_User_Query
@birgire totally agree... Regarding the trac ticket though, I thought it was closed out as a "wontfix" but then later saw it said "fixed" - if you have a look in WP_User_Query it appears that at least somewhere along the line similar code for a relation check === to OR was added that then adds DISTINCT to the SELECT. I wonder... that should still work though right?
Mar
10
revised User appears twice in a WP_User_Query
added 590 characters in body
Mar
10
revised User appears twice in a WP_User_Query
added 590 characters in body
Mar
10
comment User appears twice in a WP_User_Query
@birgire interesting thanks, wasn't quite sure... There's a trac ticket that has rumblings of the same problem: core.trac.wordpress.org/ticket/17582 with a solution albeit not entirely desirable if you read the OP.
Mar
10
comment User appears twice in a WP_User_Query
hmm... typically that would happen if you are using add_user_meta and didn't specify unique. I need to give it some more thought.
Mar
10
answered User appears twice in a WP_User_Query
Mar
10
comment User appears twice in a WP_User_Query
Does the meta_key/value pair exist twice for the same user in the usermeta table by chance?
Mar
10
awarded  Strunk & White
Mar
10
comment Excerpt preview
Preview the post instead of publishing it.
Mar
10
comment Is it possible to ignore the first Line Break in a preformatted Div from a shortcode?
lol... I sympathise, who want's to regex just for the hell of it? :)
Mar
10
comment Is it possible to ignore the first Line Break in a preformatted Div from a shortcode?
Good idea... But you might need to account for cases where <br /> is <br/> (5 chars) or <br> (4 chars) - albeit output from WordPress may be consistently one form of the BR tag. Perhaps even a preg_replace on the first instance of BR (any form of BR) after the opening .pnecode element might do the trick...
Mar
10
comment Is it possible to ignore the first Line Break in a preformatted Div from a shortcode?
What do you mean ignore? Do you want to remove the BR from the final rendered output? If so, what is the problem with your css .pncode br { display: none; } ? If you want to target the first BR only, have you tried .pncode br:first-child { display: none; } ?
Mar
10
comment What is the best way to instantiate a class of a plugin in your WordPress theme?
Removed my comment, as you question relates to a theme.
Mar
10
comment datetime_timestamp shows numbers only? need in date and time
No problem... :)
Mar
10
comment datetime_timestamp shows numbers only? need in date and time
+1 for the "WordPress way"