Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter flix8918

    (@flix8918)

    Hello Jeff:

    in the plugin in the file class-theme-my-login.php

    protected function load() {
    $this->load_instance();
    \add_action( ‘pre_get_posts’, array( &$this, ‘pre_get_posts’ ) );

    and

    /**
    * Exclude TML pages from search
    *
    * @since 6.1.13
    * @access public
    */
    public function pre_get_posts( &$query ) {

    the conflict is that it is restricting all search functions,

    when i disable the pre_get_posts in the first paragraph above it does allow the search function but also it allows the public search to show private pages “if you search admin it will show the back-end admin page” even when the user is logged out.

    how can i disable the protection for posts only but also have the private pages be secure and not show in search results please.

    thank you

    Thread Starter flix8918

    (@flix8918)

    i understand, thank you for your help and time, you have a great plugin.

    Thread Starter flix8918

    (@flix8918)

    I have disabled all the plugins one by one and Theme My Login does conflict with the search function, can i please remove the search function from Theme My Login and if so how do i do that.

    is there anything i can do so TML does not conflict with the search function of my theme please.

    thank you.

Viewing 3 replies - 1 through 3 (of 3 total)