Forum: Feature Requests

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support related to the Feature Requests premium extension please open a new premium support ticket.

[Resolved]custom search results template

Home Forums Feature Requests custom search results template

This topic contains 6 replies, has 2 voices, and was last updated by  gsh2000 2 years, 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #50699

    gsh2000
    Participant

    search results template
    WP 4.4.2
    GEO my WP 2.6.4

    Eyal hello:

    Thanks again for the fantastic plugin.

    I am adding geo data to my woocommerce products (posts).

    I use the [grid-gray] search results template.

    But – I would like my search results to appear **exactly as they do** in my WP template (woocommerce/storefront).

    I would need to develop a custom template/css to achieve this? (I noticed your instructions for this).

    Wil your Premium Settings add-on help me at all with this?

    Also, while I have you – a very small issue – taxonomies in search form drop down menus, appear in random (?) order, not alphabetically. Any suggestions?

    Thanks again for a fantastic plugin.

    Garry, Los Angeles USA

    #50711

    Eyal Fitoussi
    Keymaster

    You are welcome Garry and thank you for the feedback.

    I would like my search results to appear **exactly as they do** in my WP template (woocommerce/storefront). I would need to develop a custom template/css to achieve this? (I noticed your instructions for this).

    Yes, you need to create a custom results template file. You can use one of the existing template files as a based and replace the loop with the loop from your theme template file. You will need to do some adjustment but basically it should be possible.

    Wil your Premium Settings add-on help me at all with this?

    No, unfortunately, the add-on won’t help you with that.

    Also, while I have you – a very small issue – taxonomies in search form drop down menus, appear in random (?) order, not alphabetically. Any suggestions?

    Try this script ( added to the functions.php file of your theme ):

    #50754

    gsh2000
    Participant

    Eyal hi – thanks for the above response.

    Regarding the taxonomies order, I tried the code snippet from above.

    I am filtering my search results by post attributes that I have created. (screenshot attached)

    I tried –> if ( $tax->name != ‘attribute’ )

    also… if ( $tax->name != ‘myattributename’ )

    …but no luck?

    GARRY

    Attachments:
    You must be logged in to view attached files.
    #50756

    Eyal Fitoussi
    Keymaster

    You are welcome Garry,

    You can simply remove the the form ID and taxonomy slug check so the filter will take place for all taxonomies.

    #50764

    gsh2000
    Participant

    perfect – that worked.

    #50776

    Eyal Fitoussi
    Keymaster

    Awesome.

    Marking this resolve. Feel free to open a new ticket if you have any other questions.

    #55663

    gsh2000
    Participant

    $args[‘orderby’] = ‘name’;
    $args[‘order’] = ‘ACSD’;

    Eyal hello

    Strange, in GEO my WP Version 2.6.6.3 – ACSD parameter stopped working, taxonomies drop down appears in descending order instead of ascending order?

    thanks , GARRY

    Attachments:
    You must be logged in to view attached files.
Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘custom search results template’ is closed to new replies.