Support » Plugin: Permalink Manager Lite » Permalink Manager Lite and BasePress Knowledge Base

  • Resolved bomalo

    (@bomalo)


    Hi,

    i install Permalink Manager Lite and BasePress Knowledge Base,
    and BasePress Knowledge Base’s home can not load well.

    1. i try to disable Permalink Manager Lite,
    BasePress Knowledge Base’s home can show the KB well.

    2. i contact BasePress Knowledge Base,
    they do not understand why it,
    and they give me a code to add into functions.php,
    and the home works,im not sure if you can help check it?

    thanks

    add_action( 'wp_enqueue_scripts', function(){
    	if( is_page( 20 ) ){
    		global $basepress_utils;
    		$basepress_utils->is_knowledgebase = true;
    	}
    }, 5 );
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi again @bomalo,

    I do not provide support for third-party plugins, but the more reliable way to make it working is to use the adjusted snippet:

    add_action('wp_enqueue_scripts', function() {
    	$basepress_settings= get_option('basepress_settings');
    
    	if(!empty($basepress_settings['entry_page']) && is_page($basepress_settings['entry_page'])) {
    		global $basepress_utils;
    		$basepress_utils->is_knowledgebase = true;
    	}
    }, 5);

    Then, it will work also after you change the page ID where the documentation is displayed.

    bomalo

    (@bomalo)

    Hi,

    thanks with your replay alot.

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