WPSolr logo
Search
Close this search box.

Forum Replies Created

  • techniquepix
    Participant
    2 years, 9 months ago in reply to: Override default template of search results #27326

    Yes, I see it. I have “WPSOLR facets” widget and “WPSOLR sort list” widget.
    But I don’t use them.

    techniquepix
    Participant
    2 years, 9 months ago in reply to: Override default template of search results #27321

    Yes, I added a template of type “Search results”, it’s not a single page Elementor template.
    But when I search a item, it displays the results like if WPSOLR was not activated ( = the results of default WP search).
    For example in WPSOLR index posts of type “posts”, “pages”, “cpt-1” are selected in screen 2.2 as data to index. But on front the search results displays posts of type “cpt-2”, a post type that I haven’t added to the WPSOLR index.
    And it’s the case only when I activate the search result template from Elementor. If I use the search.php template from my theme, the search only displays posts from “posts”, “pages” and “cpt-1”, so only the post types I have indexed with WPSOLR. Posts from “cpt-2” are not displayed. It’s the expected behaviour.
    I don’t know how to fix this so that it works with the search results template of Elementor…

    Thanks

    techniquepix
    Participant
    2 years, 9 months ago in reply to: Override default template of search results #27319

    Ok, thanks for your clarifications !
    Last question : is it working with Elementor ? I created a search results template with Elementor, inserted the “Post Archive” widget but the results displayed are not the same as when I don’t use Elementor Template. With Elementor template it displays CPT that I haven’t added to WPSOLR index. Is there a specific configuration for Elementor ?

    Thanks

    techniquepix
    Participant
    2 years, 9 months ago in reply to: Override default template of search results #27317

    Hi,
    The search was displayed via the shortcode [solr_search_shortcode]. Can I still use it ? Or is it deprecated too ?
    If it’s still ok, there is no way to easily customize the html of the results render ?
    If not, I will use the default search of WP.

    Thanks

Viewing 4 posts - 16 through 19 (of 19 total)