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