I would really appreciate some help.
I am using WordPress SEO by Yoast with the suffusion wordpress theme and I’ve noticed that when I add a query post on my website, the title displayed on my browser is always the title of the last post in the query post widget.
I’ve found on the web that the way to solve this is to make sure that the call to wp_head or wp_title (not sure which one) has to come before the call to query_posts.
I’m not familiar with coding and was wondering how I could achieve this with a child theme?
As well, could these changes cause any potential problems.
Thanks in advance for the help.
I did not add <title><?php wp_title(”); ?></title> to my header.php but just checked the box to Force rewrite titles in the WordPress SEO plugin
- The topic ‘Child theme code to call query_post after wp_home/wp_title’ is closed to new replies.