Individual Post/Page settings

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 Ernest Marcinko 6 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13339
    alan_mcginnis
    alan_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!

    Attachments:
    You must be logged in to view attached files.
    #13364
    Ernest Marcinko
    Ernest 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:

    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 :)


    #13372
    alan_mcginnis
    alan_mcginnis
    Participant

    Thanks,

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

    #13378
    Ernest Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

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


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.