最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - An extra ' is displayed in the title

programmeradmin5浏览0评论

I've found a string that's showing the posts title - blogname as title in the browser, but it's adding an extra '

This is the code I'm using:

<title><?php wp_title(‘ | ‘, ‘echo’, ‘right’); ?>  - <?php bloginfo(‘name’); ?></title>

I can't see any extra ' so I don't know what's wrong.

I've found a string that's showing the posts title - blogname as title in the browser, but it's adding an extra '

This is the code I'm using:

<title><?php wp_title(‘ | ‘, ‘echo’, ‘right’); ?>  - <?php bloginfo(‘name’); ?></title>

I can't see any extra ' so I don't know what's wrong.

Share Improve this question edited Feb 13, 2022 at 22:57 rudtek 6,3535 gold badges30 silver badges52 bronze badges asked Feb 13, 2022 at 20:14 Adam LarssonAdam Larsson 436 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Those look like smart apostrophes to me. They have a curve on theme. Try:

<title><?php wp_title(' | ', 'echo', 'right'); ?> - <?php bloginfo('name'); ?></title>

Otherwise post what you have around that php section too.

发布评论

评论列表(0)

  1. 暂无评论