Google indexing pages that are not used

You should enter the editor of your pages, and as you see for example here, on the right side settings you can control their “visibility”. Change that to “private”, and then Google won’t see them. Once Google will reindex your pages, these should disappear from its search results. And until then, visitors will see a … Read more

Customize search_filter($query) function

OK. I have changed $query->set(‘orderby’, ‘type’) function search_filter($query) { if ($query->is_search && !is_admin()) { $query->set(‘post_type’, array(‘post’,’forums’)); $query->set(‘category_name’, ‘my-zen’); $query->set(‘orderby’, ‘date’); $query->set(‘order’, ‘ASC’); } return $query; } add_filter(‘pre_get_posts’,’search_filter’); Now, I don’t have any Error critical, but it doesn’t work. What is wrong in my code?

Loadmore search results not showing new results?

It seems you have hardcoded your pageNumber as 1 always. var pageNumbers = 1; So every time you click on “Load More” this value will be incrementing even if you are searching for new term. My approach would be to store the pageNumber value in “Load More” button. <button data-pageNumber=”1″ id=”load-more”>Load More</button> And when you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)