Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Need some help
- This topic has 5 replies, 2 voices, and was last updated 8 years, 6 months ago by
Ernest Marcinko.
-
AuthorPosts
-
November 10, 2017 at 6:48 pm #15463
AndrasFabian
ParticipantHi,
At first congratulations to you search plugin, it is the 4th paid plugin I tried and this is very useful.
I need just a very simple (for you) plus feature maybe you can send me in a short php.
I would like to place a search form on the result page, but it must be dynamic:
the actual Ajax Search Pro search form in which the search is initiated.
Maybe it should be an echo dynamic shortcode of the original.
Can you please send me this short php?
Thank you very much in advance and Bests!
András Fábián
November 13, 2017 at 8:27 am #15473Ernest Marcinko
KeymasterHi!
For each search shortcode there is a PHP shortcode available that you can use, you can find it here:
– Click toggle: https://i.imgur.com/RwGcAxz.png
– PHP shortcode there: https://i.imgur.com/NreYHsF.pngIf you need a specific layout for your search instance, you can also try the Shortcode Generator script as well.
November 13, 2017 at 7:28 pm #15492AndrasFabian
ParticipantThanks, I know these options, but it is not what I need unfortunately.
I have 3 search boxes on different pages of my site with different settings.
I need to get displayed always that searchbox on the result page where the search was initiated.
If I search from searchbox ID=1 – on the result page searchbox ID=1 is displayed.
If I search from searchbox ID=2 – on the result page searchbox ID=2 is displayed.
If I search from searchbox ID=3 – on the result page searchbox ID=3 is displayed.This can be achieved by a dynamic shortcode in php.
If you can not supply this code I have to hide the searchbox on the result page, otherwise the searches will messed up.
Can you help me, please?
November 14, 2017 at 11:04 am #15506Ernest Marcinko
KeymasterHi,
Sure, I believe this is something you are looking for:
[php]<?php
$sid = isset($_POST[’p_asid’]) ? $_POST[’p_asid’] : (isset($_GET[’p_asid’]) ? $_GET[’p_asid’] : 1);
echo do_shortcode(‘[wd_asp id=’.($sid + 0).’]’);
?>[/php]November 14, 2017 at 12:16 pm #15507AndrasFabian
ParticipantYep, THAT’S IT! I’ve tried and it works.
Thank you very very much.
Your plugin is the best multifunctional search plugin in the market.
With this additional php this plugin is fit to every option one can ever need!!
Bests!!!
November 14, 2017 at 2:05 pm #15509Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.