• Resolved crawft

    (@crawft)


    HI,

    The plugin breaks search in the admin for one of our custom post types (no results), but others seem OK. Is there a way to disable in the admin? Or is there something about our CPT that would stop the admin search working with the plugin? It doesn’t seem much different to other CPTs where search does work.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hello @crawft,

    Thanks for your message.

    What do you mean by “The plugin breaks search in the admin for one of our custom post types”? Is there an error or is there just no search result?

    I will be grateful for very detailed information.

    Best,
    Mateusz

    Thread Starter crawft

    (@crawft)

    As I said in my post – there are no results.

    I think the easiest fix would be if it I could disable the plugin for the admin, is that possible?

    Thanks

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @crawft Please add the following code to the functions.php file in your theme directory:

    add_filter( 'acfbs_is_available', function ( $status ) {
    	if ( is_admin() ) {
    		return false;
    	}
    	return $status;
    } );

    Did that fix the problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Breaks admin search for custom post type’ is closed to new replies.