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

Individual Post/Page settings

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Individual Post/Page settings

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13339
    alan_mcginnisalan_mcginnis
    Participant

    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!

    #13364
    Ernest MarcinkoErnest Marcinko
    Keymaster

    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:

    [php]if ( in_array( $post_type, $post_types )) {[/php]

    ..and change that to:

    [php]if ( in_array( $post_type, $post_types ) || 1 ) {[/php]

    That should hopefully do the trick 🙂

    #13372
    alan_mcginnisalan_mcginnis
    Participant

    Thanks,

    This worked. Will I have to make the modification each update or this code rarely updated?

    #13378
    Ernest MarcinkoErnest Marcinko
    Keymaster

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.