Display title for search engine visitors

I read somewhere*) that there’s some q part inside the wp_query object, that identifies search engine visitors and shows the keywords they searched for. I’m currently developing local, so i can’t access/see $GLOBALS[‘wp_query’]->q;. Could someone varify if this exists and/or has some alternate solution for retrieving: the search engine name the search string searched inside … Read more

Noindex, nofollow stuck on homepage

Recently my hosting automatically upgraded our WordPress version. Due to custom plugin conflicts, we requested them to restore it to the previous version. Our homepage now contains the code “meta name=”robots” content=”noindex,nofollow”https://wordpress.stackexchange.com/” (< removed). From Googling, it appears that this code should be added when I visit the Privacy section of WordPress and select “I … Read more

Simple way to search custom-post types only

I’m just trying to find a way to narrow my current search bar so that it only searches within my ‘events’ custom post-type. I do not want the search to index any other post type, only ‘events’. Here’s the search bar: <form id=”searchform” action=”http://localhost:8888/ltc” method=”get”> <input class=”inlineSearch” type=”text” name=”s” value=”Enter a keyword” onblur=”if (this.value == … Read more