Include woocommerce custom field value in front-end search result

You have to modify WooCommerce search query. Hook into this action: do_action( ‘woocommerce_product_query’, $query, $instance ); Detect if it is a search query Add your _subtitle meta Something like this (not tested): if ( $query->is_search ) { $query->set(‘meta_query’, array( array( ‘key’ => ‘_subtitle’, ‘value’ => $query->query_vars[‘s’], ‘compare’ => ‘LIKE’ ) )); };

Importing users to Buddypress with custom fields

I ended up writing a bunch of MySQL statements. My process went: Add users into wp_users. Add first name into wp_usermeta. Add last name into wp_usermeta. Add nickname into wp_usermeta. Add last activity into wp_usermeta. (This is important for BuddyPress; otherwise, users won’t show up in the members-loop) Add name to BuddyPress. Add custom “phone” … Read more

WordPress Custom Fields by category

Try using magic fields. It will let you create a custom panel for each category, where you can specify just the custom fields needed for that category. It allows you to present it all in a very user friendly way as well, as well as manuy, many, many other cool things. The plugin will change … Read more