-
AuthorPosts
-
April 13, 2019 at 8:52 pm #1090450
Hi,
If I enter a search Item that will find an item that is a download item and select it from the search results pull down, clicking on it will not work.In more detail a example that reproduces the issue on our site:
Enter “Weih” into the search field and wait until a list appears. (Do NOT press on the magnifyer class !)
Go down with the mouse and click on “Weihnachtspfarrbrief 18”
This wants to bring you to the link https://www.my.url/?post_type=dlm_download&p=3538.
But this does not work.
(Searching for pages/blogs with the same method will work.)
However pressing on the Magnifying class first will list the search results and going there to the same item
will bring you to https://www.my.url/download/3538 -and this will work.br
Wolfgang-
This topic was modified 6 years, 6 months ago by
sthubertus.
April 16, 2019 at 7:41 am #1091257Hey sthubertus,
Thank you for using Enfold.
We are not sure how dlm handles links, so it’s probably best if the “downloads” post type or items are excluded from the AJAX search.
add_filter('avf_ajax_search_query', 'avf_ajax_search_query_mod', 10, 1); function avf_ajax_search_query_mod( $search_parameters ) { $footer = avia_get_option( 'footer_page', 0 ); $defaults = array('numberposts' => 5, 'post_type' => array( 'post', 'page', 'product' ), 'post__not_in' => array($footer), 'post_status' => 'publish', 'post_password' => '', 'suppress_filters' => false); $_REQUEST['s'] = apply_filters( 'get_search_query', $_REQUEST['s']); $search_parameters = array_merge( $defaults, $_REQUEST ); return $search_parameters; }Best regards,
IsmaelApril 19, 2019 at 10:06 pm #1092755Dear Ismael,
Thanks, this workaround works!
Happy Easter
WolfgangApril 20, 2019 at 10:19 am #1092906 -
This topic was modified 6 years, 6 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
