| bio | website | boone.gorg.es |
|---|---|---|
| location | Brooklyn, NY | |
| age | 32 | |
| visits | member for | 1 year, 2 months |
| seen | May 16 at 19:13 | |
| stats | profile views | 121 |
Champion of history
|
May 2 |
comment |
Why is $wpdb->get_results failing on certain tables but not others (which have data)? You can't use sprintf replacement for table names - $wpdb->prepare( "%s", 'foo' ) will put single quotes around 'foo', which is not valid MySQL syntax for referring to tables. |
|
Apr 20 |
comment |
Sharing Dynamic Sidebars across Multisite Blogs I think it's going to be more trouble than it's worth to stick with WP's actual widget infrastructure. Instead, abstract the widget markup/PHP into a separate function, which you will then call directly in a template file (or hook to an appropriate action). |
|
Apr 17 |
comment |
How to you redirect to Member Profile in BuddyPress Yes, I rule :) You're welcome. |
|
Apr 17 |
comment |
How to speed-up BuddyPress - Plug-in Error Probably not. It's possible that the error message is coded incorrectly, so that it's telling you one path (the one listed above) but internally is actually looking for a different one. For instance, it might be missing /plugins/. Try creating a cache directory (with 755 permissions) inside of the db-cache-reloaded-fix plugin dir. |
|
Apr 17 |
comment |
How to override Member's Avatars in BuddyPress Yes, it is possible. When you first said "I have tried everything to override the BP Avatar" I figured you wanted to override all avatars. I have edited my answer with a proper method. As you note, it's a bad idea to change the core files, and in this case there are several filters there that make it unnecessary to do so. |
|
Apr 16 |
comment |
Registering custom TinyMCE buttons, for admin area, to work with custom instances of wp_editor Cool! So glad it's figured out. |
|
Apr 16 |
comment |
Custom Post Type Meta Box Text Input Field Won't Save When Blank Glad to help! I assume that the code was originally there in order to prevent you from accidentally deleting an option. |
|
Apr 15 |
comment |
Multiple loops on index page with sticky post and pagination Yes, but you didn't name the variable correctly. Change if ( $page != 1 ) to if ( $current_page != 1 ), so that you'll be working with a variable that is defined. |
|
Apr 13 |
comment |
How to show all posts by author on buddypress profile with navigation It's not really possible for me to say, without knowing more about how you're implementing infinite scroll. |
|
Apr 13 |
comment |
Edit Custom Database Tables in Wordpress I don't recommend that you sink a lot of time into extending WP_List_Table - it's marked private, and I've been told by core devs that in the future, extending classes may just break. I have some fancy classes that help with manually displaying content in a WPish way: wordpress.org/extend/plugins/boones-sortable-columns wordpress.org/extend/plugins/boones-pagination Other than that minor point, +1 to what kaiser says. |
|
Apr 6 |
comment |
How much faster is a tax query than a meta query? Yes. If you already have it set up, leave it. I can't think of any arguments for switching it to postmeta. |
|
Apr 6 |
comment |
Sharing Dynamic Sidebars across Multisite Blogs I would need to test it, but I'm guessing that menus might work in a switch_to_blog() context, because they don't need to be registered by the theme before being called (the registration data is stored in the database). |
|
Apr 6 |
comment |
Sharing Dynamic Sidebars across Multisite Blogs The $switched global is called from within switch_to_blog(). You don't need to declare it in the global namespace. |
|
Apr 5 |
comment |
add_action reference a class Yeah, I was wrong. That only works if you're calling a static init method. See wordpress.stackexchange.com/a/48093/14052 |
|
Mar 29 |
comment |
Multiple WP_Query loops with Paginationadd_args lets you add an array of arguments to the URL. It's clearer in the inline docs and in the function itself: core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/… core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/… |
|
Mar 29 |
comment |
Multiple WP_Query loops with Pagination OK, I changed the answer again. |
|
Mar 29 |
comment |
Multiple WP_Query loops with Pagination Not sure what you mean by "gets stuck". As for the other point - yes, that's what I meant by the last sentence in my answer. You'll have to concatenate the 'base' or 'format' params so that they are aware of the other pagination argument. |
|
Mar 29 |
comment |
Multiple WP_Query loops with Pagination Cool. Good luck! |
|
Mar 29 |
comment |
Multisite Plugin - Access options (wp_options) on child sitesupdate_blog_option(). I don't think there's a WP function for getting all site ids. Try: global $wpdb; $blog_ids = $wpdb->get_col( $wpdb->prepare( "SELECT blog_id FROM $wpdb->blogs" ) ); |
|
Mar 29 |
comment |
Multiple WP_Query loops with Pagination Two things: 1) You are doing some odd things with the $wp_query global. (2) There are some implementation oddities in WP_Query itself that make it impossible to use get_query_var() and some other functions with it, so I generally reference the $_GET superglobal directly, making sure to sanitize by casting to int. I've updated my answer with a full working example. |