tagtag
Forum Replies Created
-
Okay, it’s done! Thanks !
Thanks for your quick feedback but can you explain how to use the filter woo-poly.product.disabledMetaSync? I can’t find any information about that.
Thanks
I use the following function to add the extra field:
add_action( ‘woocommerce_product_after_variable_attributes’, ‘variation_settings_fields’, 10, 3 );
add_action( ‘woocommerce_save_product_variation’, ‘save_variation_settings_fields’, 10, 2 );
add_filter( ‘woocommerce_available_variation’, ‘load_variation_settings_fields’ );function variation_settings_fields( $loop, $variation_data, $variation ) {
woocommerce_wp_textarea_input(
array(
‘id’ => “custom_vinif{$loop}”,
‘name’ => “custom_vinif[{$loop}]”,
‘value’ => get_post_meta( $variation->ID, ‘custom_vinif’, true ),
‘label’ => __( ‘Vinification’, ‘woocommerce’ ),
‘desc_tip’ => true,
‘description’ => __( ‘Vinification’, ‘woocommerce’ ),
‘wrapper_class’ => ‘form-row form-row-full’,
)
);
}function save_variation_settings_fields( $variation_id, $loop ) {
$text_field = $_POST[‘custom_vinif’][ $loop ];if ( ! empty( $text_field ) ) {
update_post_meta( $variation_id, ‘custom_vinif’, stripslashes( $text_field ));
}
}function load_variation_settings_fields( $variation ) {
$variation[‘custom_vinif’] = get_post_meta( $variation[ ‘variation_id’ ], ‘custom_vinif’, true );return $variation;
}Forum: Plugins
In reply to: [Relevanssi - A Better Search] not finding text on pageMikko,
I found the problem! I actually had a query that blocked searches for this type of meta_key.
I just changed the function and it seems to work well now!
Sorry for the inconvenience and thank you for your help!Forum: Plugins
In reply to: [Relevanssi - A Better Search] not finding text on pageHi Mikko,
Thanks for your feedback.
However, I checked the pages well in addition to the crb_event custom posts in the indexing. The number of indexed posts is the number of pages + the number of custom posts, so in back-end it seems to be okay.
I don’t use simple posts, I don’t need them.
I tried to index only the pages but nothing came out in the search.I’ll let you tell me if you have an idea to solve this problem.
ThanksForum: Plugins
In reply to: [Relevanssi - A Better Search] not finding text on pageHi Mikko,
thanks for your feedback and sorry for my late.Yes, pages are enabled in indexing.
Here are the results of :
First step :
array(68) { [“s”]=> string(9) “ambassade” [“error”]=> string(0) “” [“m”]=> string(0) “” [“p”]=> int(0) [“post_parent”]=> string(0) “” [“subpost”]=> string(0) “” [“subpost_id”]=> string(0) “” [“attachment”]=> string(0) “” [“attachment_id”]=> int(0) [“name”]=> string(0) “” [“static”]=> string(0) “” [“pagename”]=> string(0) “” [“page_id”]=> int(0) [“second”]=> string(0) “” [“minute”]=> string(0) “” [“hour”]=> string(0) “” [“day”]=> int(0) [“monthnum”]=> int(0) [“year”]=> int(0) [“w”]=> int(0) [“category_name”]=> string(0) “” [“tag”]=> string(0) “” [“cat”]=> string(0) “” [“tag_id”]=> string(0) “” [“author”]=> string(0) “” [“author_name”]=> string(0) “” [“feed”]=> string(0) “” [“tb”]=> string(0) “” [“paged”]=> int(0) [“meta_key”]=> string(24) “_crb_event_date|||0|from” [“meta_value”]=> string(0) “” [“preview”]=> string(0) “” [“sentence”]=> string(0) “” [“title”]=> string(0) “” [“fields”]=> string(0) “” [“menu_order”]=> string(0) “” [“embed”]=> string(0) “” [“category__in”]=> array(0) { } [“category__not_in”]=> array(0) { } [“category__and”]=> array(0) { } [“post__in”]=> array(0) { } [“post__not_in”]=> array(0) { } [“post_name__in”]=> array(0) { } [“tag__in”]=> array(0) { } [“tag__not_in”]=> array(0) { } [“tag__and”]=> array(0) { } [“tag_slug__in”]=> array(0) { } [“tag_slug__and”]=> array(0) { } [“post_parent__in”]=> array(0) { } [“post_parent__not_in”]=> array(0) { } [“author__in”]=> array(0) { } [“author__not_in”]=> array(0) { } [“post_type”]=> string(9) “crb_event” [“posts_per_page”]=> int(-1) [“order”]=> string(3) “ASC” [“orderby”]=> string(16) “meta_value title” [“ignore_sticky_posts”]=> bool(false) [“suppress_filters”]=> bool(false) [“cache_results”]=> bool(true) [“update_post_term_cache”]=> bool(true) [“lazy_load_term_meta”]=> bool(true) [“update_post_meta_cache”]=> bool(true) [“nopaging”]=> bool(true) [“comments_per_page”]=> string(2) “50” [“no_found_rows”]=> bool(false) [“search_terms_count”]=> int(1) [“search_terms”]=> array(1) { [0]=> string(9) “ambassade” } [“search_orderby_title”]=> array(1) { [0]=> string(172) “wplive_posts.post_title LIKE ‘{49a2d3250259338b427ed60ad0953e218f94df73bb462e89cb0575894a1bcc6a}ambassade{49a2d3250259338b427ed60ad0953e218f94df73bb462e89cb0575894a1bcc6a}'” } }Second step :
string(711) “SELECT DISTINCT(relevanssi.doc), relevanssi.*, relevanssi.title * 5 + relevanssi.content * 5 + relevanssi.comment * 0.75 + relevanssi.tag * 1 + relevanssi.link * 0 + relevanssi.author + relevanssi.category * 1 + relevanssi.excerpt + relevanssi.taxonomy + relevanssi.customfield + relevanssi.mysqlcolumn AS tf FROM wplive_relevanssi AS relevanssi INNER JOIN wplive_postmeta ON ( relevanssi.doc = wplive_postmeta.post_id ) WHERE relevanssi.term = ‘ambassade’ AND ( wplive_postmeta.meta_key = ‘_crb_event_date|||0|from’ ) AND ( relevanssi.doc IN ( SELECT DISTINCT(posts.ID) FROM wplive_posts AS posts WHERE posts.post_type IN (‘crb_event’) ) ) ORDER BY tf DESC LIMIT 500”Do you see something wrong ?
Thanks!
Forum: Plugins
In reply to: [Wicked Folders] folder taxonomy in blody_classOkay, it was my fault! I found my problem ??
It now works well with this new taxonomy!!Thanks again
Forum: Plugins
In reply to: [Wicked Folders] folder taxonomy in blody_classThank you for your quick feedback!
I’m sorry, but it doesn’t work either. Isn’t it possible to force this class addition on the body?
Also, the latest version of this plugin overwrites some other rules to add more class to the body….
Do you have any idea?Thanks
Forum: Fixing WordPress
In reply to: TinyMCE error on Firefox – TypeError: r is nullHi thien,
I have the same problem, could you explain you solution, please ?
What did you do and where ?Thanks a lot