JetSearch AJAX functionality issue
-
Hi!
I’m building a tutoring website, and I’ve found your plugin to be useful in creating reviews for the instructors. It works great with using the [ratemypost-result] shortcode in archive pages with Anywhere Elementor, so you can feel free to add that to compatible plugins. Thank you for the great plugin!
Anyway, here’s the issue I’ve run into. I’d like the ratings to be displayed inside the ajax search ratings of the JetSearch plugin, as that would look simply brilliant. Unfortunately, the shortcode placed in the plugin template loop doesn’t fetch any data.
Is there anything I’m doing wrong?Here’s the code that’s in the plugin editor:
<?php /** * Results Item js template */ ?> <div class="jet-ajax-search__results-item"> <a class="jet-ajax-search__item-link" href="<code>data.link</code>" target="<code>data.link_target_attr</code>"> <code>data.thumbnail</code> <div class="jet-ajax-search__item-content-wrapper"> <code>data.before_title</code> <div class="jet-ajax-search__item-title"><code>data.title</code></div> <code>data.after_title</code> <?php echo do_shortcode('[ratemypost-result]'); ?> <code>data.before_content</code> <div class="jet-ajax-search__item-content"><code>data.content</code></div> <code>data.after_content</code> <code>data.rating</code> <code>data.price</code> </div> </a> </div>
You’ll find the php shortcode echo line in between the data.after_title and data.before_content stuff.
You can type in “hrv” in the search. Also, under it there’s a post archive where you can see the post ratings being displayed correctly.
Let me know, thanks!The page I need help with: [log in to see the link]
- The topic ‘JetSearch AJAX functionality issue’ is closed to new replies.