Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #28587

    Hi dear Kriesi support team,

    I’ve just learned that i’m unable to search for individual portfolio items – if i search a product name, the engine returns a number of products, usually including the one i’m looking for.

    Since i built the site around portfolio items and since we have a large catalog of items, i had decided to make the shortcode the product number (eg. http://www.site.com/products/00195/ would lead to product ref 00195). Sadly i’m for now unable to search for products by product number, which is essential both to our customers and our commercial and tech service.

    the site is: http://www.melagfrance.eu – i can provide a temp admin account if needed.

    cheers

    david

    #138032

    No, Portfolio Items are also part of the search result. Eg if you search for “slideshow” ( http://www.kriesi.at/themes/eunoia/?s=slideshow ) the 3rd search result is a portfolio item. If you want to limit the search results to portfolio items add following code to the bottom of functions.php

    add_action('avia_frontend_search_form', 'add_custom_avia_search_fields');
    function add_custom_avia_search_fields()
    {
    echo '<input type="hidden" id="post_type" name="post_type" value="portfolio" />';
    }

    #138033

    thanks Dude, works like a charm! :)

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Can't search Portfoio items’ is closed to new replies.