Tag Info

New answers tagged

3

The two title tags can be explained as that you are using a theme that is written for Wordpress4.1 and actually is using 4.1. As from 4.1 you don't need to call wp_title() in the head any more, you can make use of new title_tag theme support tag which automatically adds the wp_title() tag in the header The parent theme you are using are most probably ...


0

You can’t force Google to use your title, they may change it in their SERPs: […] we have algorithms that generate alternative titles […] Google's generation of page titles and descriptions (or "snippets") is completely automated and takes into account both the content of a page as well as references to it that appear on the web. […]


0

Well, I never got any input on this and ended up going with the function sanitize_title which is more restrictive than I want (processes the title to be used in a URL -- essentially returns a slug for the post), but it's the best solution I've been able to find. By running both the 3rd-party product name and the post_title from Wordpress through ...


1

Set the display argument of the function to false. <h2> <?php if (is_category()){ echo 'Category: ' . single_cat_title( '', false); } ?> </h2> Or, to use the function in its more "helpful" form you could do: single_cat_title('Category: '); If the display argument is true, WordPress automatically ...



Top 50 recent answers are included