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

    (@wpvideogallery)

    They are controlled by the search form itself. You can find the code related to this in the following files,

    /wp-content/plugins/all-in-one-video-gallery/public/templates/search-form-template-vertical.php
    
    /wp-content/plugins/all-in-one-video-gallery/public/templates/search-form-template-horizontal.php
    Thread Starter maytro

    (@maytro)

    unfortunately is it no help me.

    I’ve added another search option (as text/category) and it works well.
    The problem is when a user doesn’t use at the option, the option display empty in the URL.
    https://www.example.com/vi=s&tt=

    I’ve tried to find the location of the code when it’s created but didn’t.

    On the
    /wp-content/plugins/all-in-one-video-gallery/public/templates/search-form-template-horizontal.php file I creating the element.
    Where is the search page URL created?

    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    The search URL is controlled by the same file,

    /wp-content/plugins/all-in-one-video-gallery/public/templates/search-form-template-horizontal.php

    Note the search form uses the “GET” method. So, all the field names are appended to the form’s “ACTION URL” when you hit the search button.

    If you want to remove empty options from the URL, you should write a JavaScript code that validates the form values and strips the empty options during the form submission.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘URL on search result’ is closed to new replies.