21,239 reputation
1950
bio website ottopress.com
location Memphis, TN
age 39
visits member for 4 years, 7 months
seen 6 mins ago

Tech Ninja at Audrey Capital.

Moderator of WordPress.org support forums.

Writer of Otto on WordPress.

Random spewer of nonsense on Nothing to See Here.

Beer connoisseur.

Man about town.


17h
comment Selecting NULL value from the database
Well.. Be careful with empty(). A int of zero is empty. You need to explicitly check for NULL if it's going to be different than zero.
1d
answered Selecting NULL value from the database
Mar
17
comment Why is $wp_query fetching nothing?
Your query here seems to be named $all_vid, not $wp_query. And the place where you're referencing $wp_query->queried_object will be blank because you're not running WordPress in the normal manner, so there is no queried_object for it to get. Essentially, this code is wrong in multiple ways and it's difficult to understand exactly what it is that you're attempting to do.
Mar
6
comment Plugin installation not possible / FTP credentials in WP-config
Try using "localhost" for the hostname. See if that makes any difference.
Feb
27
awarded  Necromancer
Feb
26
comment How would I create a different permalink structure for pages and posts?
No, custom post types can have their own rewrite definitions, set by the register_post_type function.
Feb
10
answered Why does WP_Query have methods that return public properties of the same name
Feb
5
comment Is HyperDB supposed to be able to handle read-only (only) database instances?
If a write happens, and no write servers are available, then it will fail. Even loading a page can trigger one of the background pieces to do some form of writing. Log your queries, see what is happening that is not a simple SELECT.
Jan
30
awarded  Revival
Jan
17
awarded  Revival
Jan
16
comment Theme Customization API Changes not Saving
That would be something like echo get_theme_mod('tcx_footer_copyright_message', 'All Rights Reserved');
Jan
15
answered Theme Customization API Changes not Saving
Jan
9
awarded  Enlightened
Jan
9
awarded  Nice Answer
Jan
8
awarded  Good Answer
Dec
26
reviewed Close How to resize image on client-side before upload?
Dec
25
comment How to create .pot files with POedit?
Yes, just use "wp-plugin" instead of "wp-theme" and it will generate a POT file for a plugin.
Dec
21
comment How can I properly enqueue tags <link> in WordPress to use with Web Components?
There is no enqueuing feature for link tags, generally you would just add them to your theme's header directly, or output them in a function hooked to wp_head.
Dec
21
comment Why does Wordpress 4.1 have an auto-update entry in wp_options?
No, because calling wp-cron won't perform an update unless one is added previously by the aforementioned functions.
Dec
19
answered Why does Wordpress 4.1 have an auto-update entry in wp_options?