Forums › Forums › Search & Filter Pro › Button popup not function in result search and filter pro plugin
Tagged: button popup, do_shortcode
- This topic has 6 replies, 2 voices, and was last updated 10 years ago by Anonymous.
-
Ross Moderator(Private) November 10, 2014 at 12:01 pm #7299
Hey Twofic, I’m not sure I follow you – would you be able to explain what you did, or provide the exact code from “do_shortcode”?
Thanks
Anonymous(Private) November 11, 2014 at 1:28 am #7389Thankyou for reply, Ross
I add the codes in template search :
$project_fields = get_post_meta(get_the_ID(), ‘ci_cpt_project_info_fields’, true);
<?php echo do_shortcode(‘<span class=”pl-pesanbutton vc_btn vc_btn-blue vc_btn_md vc_btn-md vc_btn_rounded”>’.$project_fields[5].'</span>’);?>
Shortcode to show popup from popup ninja plugin.
In other plugin that code, yes it work, but in search & filter plugin not yet until now… can this fix it?Ross Moderator(Private) November 11, 2014 at 3:08 am #7391Do you have a an example I can see online?
I can’t really offer much support for other plugins but I’d like to take a look at what you are trying to do.
Anonymous(Private) November 11, 2014 at 3:42 am #7392frontpage mywebsite : http://www.pesantravel.co.id
with box plugin for Visual composer popup can show up. plugins it’s under search & filter plugin
Thankyou for your quick response.Ross Moderator(Private) November 11, 2014 at 11:16 pm #7451Hey twofic
So if I follow you right… you want to be able to search, and then when search is complete, attach a popup script to the results?
I think this will help – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/ – check the JS functions
You need to add this to the JS of your theme:
$(".searchandfilter").on("sf:ajaxfinish",function(){ console.log("ajax complete - attach popup code here"); //so load your lightbox or JS scripts here again });
And then add your custom JS code when the results have finished loading.
PS, you are using an outdated version of the plugin – the latest version is much faster! 🙂
Thanks
-
AuthorPosts