Title: ianwp's Replies | WordPress.org

---

# ianwp

  [  ](https://wordpress.org/support/users/ianwp/)

 *   [Profile](https://wordpress.org/support/users/ianwp/)
 *   [Topics Started](https://wordpress.org/support/users/ianwp/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ianwp/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ianwp/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ianwp/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ianwp/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ianwp/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Edit Author Slug] Set the url via php when creating a user through wp_insert_user?](https://wordpress.org/support/topic/set-the-url-via-php-when-creating-a-user-through-wp_insert_user/)
 *  Thread Starter [ianwp](https://wordpress.org/support/users/ianwp/)
 * (@ianwp)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/set-the-url-via-php-when-creating-a-user-through-wp_insert_user/#post-7151471)
 * That was exactly what I needed, using the ‘user_nicename’ parameter. Thanks for
   your help!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress Share Buttons Plugin – AddThis] Manual placement?](https://wordpress.org/support/topic/manual-placement-2/)
 *  Thread Starter [ianwp](https://wordpress.org/support/users/ianwp/)
 * (@ianwp)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/manual-placement-2/#post-4003602)
 * Do not worry, I simply used a php file with the complete code and I’m including
   it wherever I need it.
    Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Logo Slider] Responsive](https://wordpress.org/support/topic/responsive-41/)
 *  [ianwp](https://wordpress.org/support/users/ianwp/)
 * (@ianwp)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/responsive-41/#post-3782815)
 * Hi Maeve! Wondering if you have any info about this.
    Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to add meta_query to the main products query?](https://wordpress.org/support/topic/how-to-add-meta_query-to-the-main-products-query/)
 *  Thread Starter [ianwp](https://wordpress.org/support/users/ianwp/)
 * (@ianwp)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/how-to-add-meta_query-to-the-main-products-query/#post-3797555)
 * Done!
    The hook comes from WP, not WooCommerce 😀
 *     ```
       function wc_add_meta_query($query) {
       	if (is_tax('product_cat')) {
       		$query->set('meta_key', 'field_name');
       	}
       }
       add_filter('pre_get_posts','wc_add_meta_query');
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GetSocial] Compatible with Custom Post Types?](https://wordpress.org/support/topic/compatible-with-custom-post-types/)
 *  [ianwp](https://wordpress.org/support/users/ianwp/)
 * (@ianwp)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/compatible-with-custom-post-types/#post-3161274)
 * Quick solution to use it on every post type.
    Open getsocial.php and change line
   177 from
 * `if (is_single() && ( $post_type == 'post' ) && get_option('getsocial_show_on_posts')
   == "true" && $hide_box_value != "true" ) return true;`
 * to
 * `if (is_single() /*&& ( $post_type == 'post' )*/ && get_option('getsocial_show_on_posts')
   == "true" && $hide_box_value != "true" ) return true;`
 * You could always make an array of allowed post types and use that on that line,
   but for a quick solution it works. Let me know if you need help setting it up
   only for some post types.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timely All-in-One Events Calendar] The plugin does not have a valid header.](https://wordpress.org/support/topic/the-plugin-does-not-have-a-valid-header-23/)
 *  [ianwp](https://wordpress.org/support/users/ianwp/)
 * (@ianwp)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/the-plugin-does-not-have-a-valid-header-23/#post-3501399)
 * Open the file all-in-one-event-calendar.php in the root of the plugin and replace
   the comments on the first lines (which go from the /** to the */) with this
 * /*
    * Plugin Name: All-in-One Event Calendar by Timely * Plugin URI: [http://time.ly/](http://time.ly/)*
   Description: A calendar system with month, week, day, agenda views, upcoming 
   events widget, color-coded categories, recurrence, and import/export of .ics 
   feeds. * Version: 1.9 * Author: Timely * Author URI: [http://time.ly/](http://time.ly/)*
   License: GPL2 */
 * Don’t leave any space before that, just the <?php opening
 * I actually don’t know if the licence is gpl2 but I added it because the header
   seems to need it.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to reduce queries?](https://wordpress.org/support/topic/how-to-save-queries/)
 *  Thread Starter [ianwp](https://wordpress.org/support/users/ianwp/)
 * (@ianwp)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/how-to-save-queries/#post-3344103)
 * That’s a great “outside the box” coding idea (at least for my way of doing stuff,
   I tend to rely too much on WP_Query)!
 * I will try to adapt that to the code I already have, which won’t be an easy task
   since I’m working with multiple values for the same meta_key :/
 * Thanks for your answer!
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [install.php blocked on every directory](https://wordpress.org/support/topic/installphp-blocked-on-every-directory/)
 *  Thread Starter [ianwp](https://wordpress.org/support/users/ianwp/)
 * (@ianwp)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/installphp-blocked-on-every-directory/#post-3233105)
 * I’m glad it helped! 🙂
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [install.php blocked on every directory](https://wordpress.org/support/topic/installphp-blocked-on-every-directory/)
 *  Thread Starter [ianwp](https://wordpress.org/support/users/ianwp/)
 * (@ianwp)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/installphp-blocked-on-every-directory/#post-3233092)
 * I can’t believe what the problem was!
    I moved a .htaccess file that had the 
   WP better security directives to the root of xampp’s site as a backup, and forgot
   to move it back after.
 * No install file ANYWHEre could be accessed since it had the following:
 *     ```
       <files install.php>
       Order allow,deny
       Deny from all
       </files>
       ```
   
 * And, since the file was on the root, it was affecting the whole server.

Viewing 9 replies - 1 through 9 (of 9 total)