ianwp
Forum Replies Created
-
That was exactly what I needed, using the ‘user_nicename’ parameter. Thanks for your help!!
Forum: Plugins
In reply to: [WordPress Share Buttons Plugin – AddThis] Manual placement?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
In reply to: [Logo Slider] ResponsiveHi Maeve! Wondering if you have any info about this.
Thanks!Forum: Plugins
In reply to: [WooCommerce] How to add meta_query to the main products query?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
In reply to: [GetSocial] Compatible with Custom Post Types?Quick solution to use it on every post type.
Open getsocial.php and change line 177
fromif (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
In reply to: [Timely All-in-One Events Calendar] The plugin does not have a valid header.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: https://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: https://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
In reply to: How to reduce queries?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
In reply to: install.php blocked on every directoryI’m glad it helped! ??
Forum: Localhost Installs
In reply to: install.php blocked on every directoryI 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.