• Resolved billysgtr

    (@billysgtr)


    Hi, I created a Taxonomy for a bookstore with the name book_author

    I use this snippet to display the book author below the summary of single product and it is working fine.

    add_action( 'woocommerce_single_product_summary', 'show_info_below_single_product_summary', 20 );
    function show_info_below_single_product_summary() {
         the_terms( $post->ID, 'book_author', __("<div class='book_author'>Book Author:","storefront-child") , ', ', '</div>' ); 
         echo $post->ID;
    }

    My problem is that I am getting zero results when I am searching for a book author.

    Is there any way to make this taxonomy searchable?

    Thanks

    WordPress version: 5.8.1
    Custom Post Type UI: 1.10.0
    WooCommerce: 5.8.0
    Theme: Storefront 3.9.1

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Nothing like that available with CPTUI itself, as we don’t dictate or change how WordPress does its searches. By default, I believe it only searches the post title, post content, and post excerpt.

    You’d need to get some custom coding in place to amend that, or alternatively it looks like https://searchwp.com/ has the ability to search taxonomy terms and the like. Worth exploring and checking out.

    Thread Starter billysgtr

    (@billysgtr)

    Thanks for the reply Michael. I used Search Everything plugin and now I am also getting the taxonomies in my results. So problem solved ??

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Awesome. Let us know if you need anything else.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Taxonomy is not searchable’ is closed to new replies.