Title: flix8918's Replies | WordPress.org

---

# flix8918

  [  ](https://wordpress.org/support/users/flix8918/)

 *   [Profile](https://wordpress.org/support/users/flix8918/)
 *   [Topics Started](https://wordpress.org/support/users/flix8918/topics/)
 *   [Replies Created](https://wordpress.org/support/users/flix8918/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/flix8918/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/flix8918/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/flix8918/engagements/)
 *   [Favorites](https://wordpress.org/support/users/flix8918/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Theme My Login] not compatible with search function of my theme](https://wordpress.org/support/topic/not-compatible-with-search-function-of-my-theme/)
 *  Thread Starter [flix8918](https://wordpress.org/support/users/flix8918/)
 * (@flix8918)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/not-compatible-with-search-function-of-my-theme/#post-6841827)
 * 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](https://wordpress.org/support/users/since/)
   6.1.13 * [@access](https://wordpress.org/support/users/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
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Theme My Login] not compatible with search function of my theme](https://wordpress.org/support/topic/not-compatible-with-search-function-of-my-theme/)
 *  Thread Starter [flix8918](https://wordpress.org/support/users/flix8918/)
 * (@flix8918)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/not-compatible-with-search-function-of-my-theme/#post-6841759)
 * i understand, thank you for your help and time, you have a great plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Theme My Login] not compatible with search function of my theme](https://wordpress.org/support/topic/not-compatible-with-search-function-of-my-theme/)
 *  Thread Starter [flix8918](https://wordpress.org/support/users/flix8918/)
 * (@flix8918)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/not-compatible-with-search-function-of-my-theme/#post-6841721)
 * 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)