This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 5 years, 7 months ago.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
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, 7 months ago.
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!
Hi!
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,Thanks,
This worked. Will I have to make the modification each update or this code rarely updated?
I 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,You must be logged in to reply to this topic.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |