Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Individual Post/Page settings
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 5 years ago.
- AuthorPosts
- May 31, 2017 at 9:38 pm #13339
For regular posts and pages there is an Ajax Search Pro settings box that allows for additional search tags. Is there a way to enable that for custom post types? Thanks for your support!
Attachments:
You must be logged in to view attached files.June 5, 2017 at 9:41 am #13364Hi!
Yes, with a modification to one of the plugin files this is possible.
Open up the wp-content\plugins\ajax-search-pro\backend\metaboxes\default.php and scroll to line 46, which should be this:
if ( in_array( $post_type, $post_types )) {
..and change that to:
if ( in_array( $post_type, $post_types ) || 1 ) {
That should hopefully do the trick 🙂
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
June 5, 2017 at 6:08 pm #13372Thanks,
This worked. Will I have to make the modification each update or this code rarely updated?
June 6, 2017 at 12:35 pm #13378I think I will add an option to the back-end to enable the meta boxes for all custom post types, so you won’t have to do this again in case of update.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.