Improve the organization of WordPress page title to make your articles easier to be included by spiders

Time:2020-2-13

I found a lot of articles on the Internet to change the function

Why do I need to change the function for what the template does

So we study the function of WP title

I found that online articles are all the mean ways for people who didn’t read WP PHP function carefully to reach the standard

In fact, if you change the template slightly, you can achieve the effect

The first thing I want to change is the template. For example, the address of the template modified by the blog on the road is

wp-content/themes/poetry/templates/start.php

Open this file with a text editor

About 44 lines (you can directly search < title > to locate the location)

Change this line to

<title><?php wp_title(‘&raquo;’,true,’right’); ?> <?php bloginfo(‘name’); ?></title>

That’s it

Recommended Today

[reading notes] calculation advertising (Part 3)

By logm This article was originally published at https://segmentfault.com/u/logm/articles and is not allowed to be reproduced~ If the mathematical formula in the article cannot be displayed correctly, please refer to: Tips for displaying the mathematical formula correctly This article isComputing advertising (Second Edition)Reading notes. This part introduces the key technology of online advertising, which is […]