Reply To: Information about setting the plugin

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Information about setting the plugin Reply To: Information about setting the plugin


Ernest Marcinko


Thank you very much for your kind words!

Exclusion by custom field value
Actually it is possible, both ways, either by an option or using a custom code. Let's try the option first, and if that's not working, then we can try a custom code. The key to solving this is that the plugin offers certain filters, and one of them is a 'hidden' custom field filter. So even if you don't use the filters at all, this one still applies. To create a hidden filter, go to the Frontend search settings -> Custom fields panel:

Please note that in this solution the search will include the results matching the value defined – so it's rather an inclusion then an exclusion. If you have numeric fields, make sure to use the numeric operator instead of the 'LIKE' and 'EXACTLY LIKE'.

Post type name in the content
It's also possible, but only with a custom code. I believe this knowledge base article will help you:
If you want to add the post type to the content then change this line:

$pageposts[$k]->title = $post_type . ' – ' . $pageposts[$k]->title;

.. to something like:

$pageposts[$k]->content = $post_type . ' – ' . $pageposts[$k]->content;

Primary and secondary fields
There is no tag for that unfortunately. That tag represents whichever field was chosen automatically. If the primary field source is empty, then the secondary is used.

I hope this helps!

Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)