This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Getting "Favorite" button to work in {descriptionfield}

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}

#30165
Ernest MarcinkoErnest Marcinko
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.