Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Getting "Favorite" button to work in {descriptionfield} › Reply To: Getting "Favorite" button to work in {descriptionfield}
November 6, 2020 at 10:08 am
#30165
Keymaster
Unfortunately we are not available for custom jobs.
You could make use of the advanced title and content fields, it allows using some variables (like the post ID), to print the button HTML to the results content. From the button source, it should look something like this:
<a class="simplefavorite-button"
data-postid="{__id}"
data-siteid="1"
data-groupid="1"
data-favoritecount="1" style="box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;">
Add Favorite
<i class="sf-icon-star-empty"></i>
</a>
However you will still need to add the javascript event handlers in order to make it work, I very highly doubt it will do it automatically.