PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]
Cyber Monday 2021
Cyber Monday 2021 timer

Support Forum

You need to log-in to create request (topic) to the support

Shortcode in AJAX filtering using [mdf_results_by_ajax]

This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see blue-green button on the right side) and press Save button.
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

 

I filter my posts by AJAX using [mdf_results_by_ajax] shortcode. In my custom template for output search results I use shortcode, which generate some content.

 

But after filtering posts I see only shortcode string itself but not the content which this shortcode should generate.

 

Please, can you help me, that I can see content generated by my shortcode after filtering posts by AJAX?

 

Thank you,

 

David.

Hello David

what shortcode are you using  - https://c2n.me/49rBIRO.png

Please drop  me exact  link to  the  issue

Hello, Pablo.

 

This is code from my php file with [mdf_results_by_ajax] shortcode:

 

<?php echo do_shortcode('[mdf_results_by_ajax shortcode="mdf_custom template=template/'.$mdf_template.' post_type=post orderby=rehub_review_overall_score order=desc meta_data_filter_cat='.$katalog_filtrovani_kategorie.' taxonomies=category+761^category+'.$katalog_filtrovani_term.'"]');?>

 

In my custom template for output search results ($mdf_template in the code above) I use my custom shortcode which generate list of stores offers in popoup window.

 

This is the code of my custom shortcode which I use in custom template for output search results:

 

<?php echo do_shortcode('[content-egg-block template=custom/all_merchant_widget post_id="'.$postid.'" limit="10"]');?>

 

This is how the output search results looks like before filtration by AJAX:

https://www.screencast.com/t/tGBcw6tqGM

 

After click on button"POROVNAT CENY" in the search results, this is how the list of stores offers in popoup window looks like before filtration by AJAX:

https://www.screencast.com/t/jwWdP03tNWe

 

And this is how the list of stores offers in popoup window looks like after filtration by AJAX:

https://www.screencast.com/t/kMnjQvWpE6

 

You can see, that after AJAX filtration, my list of stores offers in popoup window display only as shortcode string.

[content-egg-block] - it looks like this third-party plugin doesn't activate this shortcode for ajax requests

 

Yes, I think so.

 

Can you advice me, how to activate this shortcode for ajax requests, please?

Or can you point me to some information, how to do this?

I searched whole internet, but all I did was without success.

Hello

But in this case, you need to contact the support of a third-party plugin.

Maybe third party plugin doesn't register shortcode if conditions are is_admin()  - the point is that the ajax request occurs through wp-admin.php