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

Reply To: Search Results Links Not Working

#20741
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

I believe the issue is, that there are two post types chosen within the lite version ‘peepso-post’ and ‘acf-field’ which are not actualy individual visual post types, but used for other storage purposes (one by Peepso for status updates storage, other for Advanced Custom Fields storage). Deselcting those, will give you the correct results: https://i.imgur.com/RlAC92G.png
These two are alrady de-activated within the Pro version, but not yet within the lite. Some other Peepso/ACF post types might still be visible, I am updating the exceptions list all the time, but there are still some that are not used for separate content and won’t work of course.

I also checked why the plugin shortcode was not rendering on the front-end, and it took me a while, but I figured it out. For some reason, openin any of the site pages, it triggers a ‘save’ process, so the currently viewed page is updated. That should not happen whatsoever, I guess it’s either a custom code doing it, or a plugin, I was not able to trace it back. I hihgly recommend checking that, as it is triggered every time a page is viewed.

To bypass that, I have added the following code to the functions.php file in your child theme directory:

// -- AJAX SEARCH PRO -- Stop index table on front-end
add_filter('asp_index_on_save_stop', 'asp_index_on_save_stop_filter',10, 4);
function asp_index_on_save_stop_filter($stop, $id, $post, $update) {
	if ( !is_admin() )
		return true;
	return false;
}

This will disable the automatic index table generator, which deregisters some shortcodes during indexing, which is called by the front-end save process, which should not happen during the page rendering.