Adrien Lamotte
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [W3 Total Cache] Fragment doesn’t work since last updateHi,
Same problem here ! Any idea ? 🙂- This reply was modified 9 years, 7 months ago by Adrien Lamotte.
Forum: Plugins
In reply to: [Intuitive Custom Post Order] Custom Admin Columns Mess Up Post OrderingThank you for the fix ! That bug was really annoying 🙂
Hope the author will include that kind of fix in the next update.
Anyway, great plugin 🙂
Forum: Plugins
In reply to: [Relevanssi - A Better Search] ACF Relationship fieldThank you for the help. I got it working !
Here is a simplified version of what I did (cause my ACF structure is more complexe) :
add_filter('relevanssi_content_to_index', 'beautymed_add_product', 10, 2); add_filter('relevanssi_excerpt_content', 'beautymed_add_product', 10, 2); function beautymed_add_product($content, $post) { $tplName = get_post_meta( $post->ID, '_wp_page_template', true ); if ($tplName === 'template-types.php') { $products = get_field('produits'); foreach ($products as $product) { $content .= get_field('description', $product->ID); $content .= get_field('infos', $product->ID); $content .= get_field('conseils', $product->ID); } } return $content; }Forum: Plugins
In reply to: [Relevanssi - A Better Search] ACF Relationship fieldWell, maybe we can use a hook. But i’m not sure which one is the better pick ? Maybe relevanssi_content_to_index ?
But after that, I don’t know how to do ?
My relationship fields returns an arrays of ids. So if we can get that array, maybe we can add the content of each items to the page search (those are custom post type ids).
Thanks for your help ! 🙂
Viewing 4 replies - 1 through 4 (of 4 total)