andy_woz
Forum Replies Created
-
Forum: Plugins
In reply to: [Supra CSV] transport error – HTTP status code was not 200Ah yes! Just checked plugins directory and sucuri plugin had added a deny from all in htaccess.
<Files *.php> deny from all </Files>I turned the plugin off but it didn’t remove the deny.
Thanks!
Forum: Plugins
In reply to: [Supra CSV] transport error – HTTP status code was not 200Nope not familiar. Do you have any ideas? I’m not getting any errors in the server log
Forum: Plugins
In reply to: [Filter Custom Fields & Taxonomies Light] Text searchSent email + deets, thanks!
A
Forum: Plugins
In reply to: [Filter Custom Fields & Taxonomies Light] Text searchI’m just not getting any results, even if I search on terms that are in select options (they are checked off for keywords too).
Does this help:
Full text url string:
/profi-search/#sf-{"1":"North%20Yarmouth","search-id":"1"}Select menu text url string:
/profi-search/#sf-{"2":"North%20Yarmouth","search-id":"1"}To get any results I need to clear the full text search first. the meta field that the query belongs to is set for both select menu search and keyword.
Any ideas?
Forum: Plugins
In reply to: [Filter Custom Fields & Taxonomies Light] Text searchNope not duplicate results, no results.
Forum: Plugins
In reply to: [WooCommerce] WooCommerce: Product image sizes not changeingHi all Woocommerce does let you disable all of its styles, its in the docs here: http://docs.woothemes.com/document/css-structure/
Theoretically you can disable them (all or some) and then reload them from a location outside of the plugin directory (you can move them all to the theme directory and enqueue them or link to them) negating any inadvertent effects of plugin updates and allowing you free reign to adjust all of them to your needs.
You can use this tool to make the CSS easier to work with as it’s all compressed http://mrcoles.com/blog/css-unminify/
Good luck!
Forum: Hacks
In reply to: Custom Query – List Users by last nameClosing
Forum: Hacks
In reply to: Custom Query – List Users by last nameForum: Hacks
In reply to: User Query help – Listing AuthorsOk I got this down, mostly thanks to this post:
http://wpsmith.net/2012/wp/an-introduction-to-wp_user_query-class/The upshot is that you can do this with WP_user_query but it won’t let you order by last name without some modifications.
Set up action in functions.php to allow you substitute the default order by user ID with user last_name:
add_action( 'pre_user_query', 'wps_pre_user_query' ); /* * Modify the WP_User_Query appropriately * * Checks for the proper query to modify and changes the default user_login for $wpdb->usermeta.meta_value * * @param WP_User_Query Object $query User Query object before query is executed */ function wps_pre_user_query( $query ) { global $wpdb; if ( isset( $query->query_vars['query_id'] ) && 'wps_last_name' == $query->query_vars['query_id'] ) $query->query_orderby = str_replace( 'user_login', "$wpdb->usermeta.meta_value", $query->query_orderby ); }Then construct you wp_user_query object like so (outputting as a select menu labeled last_name/first_name):
<select name="author" id="select-author"> <option value="0">Select Author</option> <?php // prepare arguments $args = array( 'meta_key' => 'last_name', 'query_id' => 'wps_last_name', 'role' => 'author' ); // Create the WP_User_Query object $author_query = new WP_User_Query( $args ); $authors = $author_query->get_results(); foreach($authors as $author): $select .='<option value="'. $author -> user_nicename .'">' . $author -> last_name . ' ' . $author -> first_name . '</option>'; endforeach; print $select; ?> </select>Hope this helps someone, sometime. Let me know if it does.
Forum: Hacks
In reply to: User Query help – Listing AuthorsInteresting, thanks bcworkz I’ll certainly give it a shot.
I have a duplicate thread here http://wordpress.org/support/topic/custom-query-list-users-by-last-name?replies=5 I’m going to consolidate the two as one of them was an error (I received a Bad Gateway error when posting and assumed it didn’t get through…)
If anyone has any other input can we move it over to the other thread?
Thanks.
A
Forum: Hacks
In reply to: Custom Query – List Users by last nameHi Sunny, if no last name is entered then I think ordering by either first name or by nicename would be a reasonable fallback not that there would be much different if nicename hasn’t been edited to something other than the WP default. Does that make sense?
Forum: Hacks
In reply to: Custom Query – List Users by last nameHi Sunny, I thought of something like this but I need them ordered by Second Name and as far as I can tell that’s not supported as one of the parameters. That seems to be the sticking point…… any ideas?
Thanks for the above.
Forum: Networking WordPress
In reply to: Multisite Site URL's include base URL. HelpOk so I guess I was having a bit of a mind cluster because fixing the linking was as simple as updating the home path to http://www.domainname.com
I can’t update site_url though as that breaks all the css and images. I am assuming that this is normal with a sub directory set up using aliases at the hosting level or is there a way to fix those paths too?
Thanks
A
Forum: Networking WordPress
In reply to: Multisite Site URL's include base URL. HelpAnd by that I mean that the homepage is showing up at http://www.domainname.com but all the url’s to posts, CSS and images etc. are in the form http://base_site/domainname
Forum: Networking WordPress
In reply to: Multisite Site URL's include base URL. HelpYes sorry just mapping domains.
The domain mapping seems to be working at the top most level but the permalinks need updating.