2,709 reputation
1523
bio website ericholmes.ca
location Toronto, Canada
age 26
visits member for 3 years
seen yesterday

I'm a WordPress enthusiast from Toronto, Canada. I work at Zeitguys Inc. and produce premium WordPress solutions.

WP on!


Aug
24
reviewed Approve Adding a Meta to the wp_get_archives
Aug
24
comment Adding an extra sidebar to your theme
Then use CSS. It's your decision where you place the <?php get_sidebar( 'left' ) ?> declaration. You'll also need to apply either the same CSS classes to the containers, or write some CSS... This is solved.
Aug
24
comment Adding an extra sidebar to your theme
You just need to add Widgets to it in the Admin area to have them start showing up. It may be empty right now
Aug
24
comment Adding an extra sidebar to your theme
Well, your sidebar appears to be showing up. When I view source of the page, I found <div id="left-sidebar" class="left-sidebar widget-area" role="complementary">
Aug
24
answered Adding an extra sidebar to your theme
Aug
16
awarded  Yearling
Aug
11
comment How to get the total number of meta_values based on a custom post type?
no problem! It's about catching things like that - site speed on the back end almost never has 1-off issues, it's 10 or 15 things like this that all accumulate 100ms to the page load :).
Aug
11
comment How to get the total number of meta_values based on a custom post type?
get_post_meta is hitting the database for the metadata. This isn't a problem when you are dealing with 10, 15, even 100 posts. But even at 200 posts, you're making 201 DB calls instead of 1, and that can start to become a noticeable amount of time, because most servers handle approximately 10-30 simultaneous calls.This means you have to send 7 batches of calls for 201 requests - just means more page load time.
Aug
10
comment How to get the total number of meta_values based on a custom post type?
+1 for "the WordPress way", though it could run into some serious performance issues with x postmeta calls.
Aug
10
answered How to get the total number of meta_values based on a custom post type?
Aug
10
comment How to get the total number of meta_values based on a custom post type?
Great question. I'm going to try to write a MySQL statement that handles this all for you in one fell swoop.
Aug
7
comment Usage of the login_redirect filter
I feel like disabling your filter would actually fix the problem. ?redirect_to is already handled by WordPress - you just need to pass the ?redirect_to=/members-area from the front end and the rest should be done for you.
Aug
5
comment How to change single custom post template by custom taxonomy?
Thanks for the cleanup, @birgire, this answer was pre-coffee :).
Aug
5
answered How to change single custom post template by custom taxonomy?
Jul
27
revised Convert simple SQL Query to WordPress query
added 51 characters in body
Jul
27
comment Convert simple SQL Query to WordPress query
Yes, I guess I forgot to add $wpdb->query( $query ); to the end of mine. :)
Jul
27
revised Convert simple SQL Query to WordPress query
added 649 characters in body
Jul
27
comment Convert simple SQL Query to WordPress query
If you want to run that exact query from within WordPress, just use the global $wpdb object's `query' and 'prepare' functions. Adding example in answer.
Jul
27
answered Convert simple SQL Query to WordPress query
Apr
8
answered Custom post type and google visibility