jmask
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Search with Algolia] HierarchicalMenu not displaying correctlyStill hoping for insight. It only has –parent and –child but no more levels. This is what is seen when expanding the hierarchical menu. Site URL is omitted in the below code.
<li class="ais-HierarchicalMenu-item ais-HierarchicalMenu-item--selected ais-HierarchicalMenu-item--parent"> <div><a class="ais-HierarchicalMenu-link" href="https://mywebsite.com/?s=makeup"><span class="ais-HierarchicalMenu-label">Bath & Body</span><span class="ais-HierarchicalMenu-count">2</span></a></div> <div class="ais-HierarchicalMenu-list--child"> <ul class="ais-HierarchicalMenu-list"> <li class="ais-HierarchicalMenu-item ais-HierarchicalMenu-item--selected ais-HierarchicalMenu-item--parent"> <div><a class="ais-HierarchicalMenu-link" href="https://mywebsite.com/?s=makeup"><span class="ais-HierarchicalMenu-label">Body Moisturizers</span><span class="ais-HierarchicalMenu-count">2</span></a></div> <div class="ais-HierarchicalMenu-list--child"> <ul class="ais-HierarchicalMenu-list"> <li class="ais-HierarchicalMenu-item ais-HierarchicalMenu-item--selected"> <div><a class="ais-HierarchicalMenu-link" href="https://mywebsite.com/?s=makeup"><span class="ais-HierarchicalMenu-label">Body Lotion & Cream</span><span class="ais-HierarchicalMenu-count">1</span></a></div> </li> <li class="ais-HierarchicalMenu-item"> <div><a class="ais-HierarchicalMenu-link" href="https://mywebsite.com/?s=makeup"><span class="ais-HierarchicalMenu-label">Body Oils</span><span class="ais-HierarchicalMenu-count">1</span></a></div> </li> </ul> </div> </li> </ul> </div> </li>Forum: Plugins
In reply to: [WP Search with Algolia] HierarchicalMenu not displaying correctlyYou can search anything, like makeup
The top menu show the hierarchy of the menu structure…Forum: Plugins
In reply to: [WP Search with Algolia] HierarchicalMenu not displaying correctly.com/?s
works I just accidentally capitalized the “s” in my original post.
Yes it’s customized now, minimally, but it never worked even with default template.
Forum: Plugins
In reply to: [WP Search with Algolia] HierarchicalMenu not displaying correctlythis is for the facet on the search results display page
Forum: Plugins
In reply to: [WP Search with Algolia] Remove facet valueHere I have added a filter to the post index….
I want the post indexed, just not the 3 categories.// add blacklist function filter_post( $should_index, WP_Post $post ) { $terms = get_the_terms($post->ID, 'product_cat'); foreach( $terms as $key => $term ){ if ( 63749 === $term->taxonomy ) { return false; error_log( 'RETURN FALSE: ' . print_r( $term->taxonomy, true ) ); } if ( 63903 === $term->taxonomy ) { return false; error_log( 'RETURN FALSE: ' . print_r( $term->taxonomy, true ) ); } if ( 63983 === $term->taxonomy ) { return false; error_log( 'RETURN FALSE: ' . print_r( $term->taxonomy, true ) ); } } return $should_index; } // Hook into Algolia to manipulate the post that should be indexed. add_filter( 'algolia_should_index_searchable_post_product', 'filter_post', 10, 2 ); add_filter( 'algolia_should_index_post_product', 'filter_post', 10, 2 );Still not working.
I also treated the object as a WP_Term object with the other method. Still not working…
I have debugged the object before and after and I am doing everything correctly. However it is still being indexed….
- This reply was modified 4 years, 7 months ago by jmask.
Forum: Plugins
In reply to: [WP Search with Algolia] Remove facet valueI also tried this method
// EXCLUDE TERM FROM BEING INDEXED function custom_should_index_term( $should_index, $item ) { $terms_to_exclude = array( 63983, 63903, 63749 ); if ( false === $should_index ) { return $should_index; error_log( "term was false before check" ); } $post_term_ids = wp_get_post_terms( $item->ID, 'product_cat', array("fields" => "ids") ); if ( in_array( $terms_to_exclude, $post_term_ids)) { return false; error_log( "Post term was found in array" ); } return $should_index; }Forum: Plugins
In reply to: [WP Search with Algolia] Remove facet valueI tried this as well, no luck
// EXCLUDE TERM FROM BEING INDEXED function custom_should_index_term( $should_index, $item ) { $terms_to_exclude = array( 63983, 63903, 63749 ); if ( false === $should_index ) { return $should_index; error_log( "term was false before check" ); } $post_term_ids = wp_get_post_terms( $item->ID, 'product_cat', array("fields" => "ids") ); $remaining_term_ids = array_diff( $post_term_ids, $terms_to_exclude ); if ( count( $remaining_term_ids ) === 0 ) { return false; error_log( "Post term was found in array" ); } return $should_index; }Forum: Plugins
In reply to: [WooCommerce] Simple product has a parent productWell the two products would have never shared variations
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] wp-content/cache 485GCron jobs appears to not be deleting 100 files every 5 minutes as the FAQ says.
- This reply was modified 5 years, 2 months ago by jmask.
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] wp-content/cache 485GHow would another plugin be able to clear WPFC?
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] wp-content/cache 485GHow can I possibly target what is clearing the cache so often
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] wp-content/cache 485Git has over 1,000 directories
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] wp-content/cache 485G/tmpWpfc
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] wp-content/cache 485GSo I deleted the cache folders, and they all regenerated and now we’ve climbed to 685g
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] wp-content/cache 485GThank you for the quick response! So Should I clear the contents of the folder or folder and all?