html Wordpress - 附加元标记
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html Wordpress - 附加元标记相关的知识,希望对你有一定的参考价值。
<?php if ( is_front_page() ) { ?>
<meta property="og:title" content="JasonGlisson.com"/>
<?php } else { ?>
<meta property="og:title" content="<?php the_title(); ?>"/>
<?php } ?>
<meta property="og:image" content="<?php echo get_template_directory_uri(); ?>/library/images/fb-share.jpg"/>
<meta property="og:site_name" content="JasonGlisson.com"/>
<?php if ( is_single() ) { ?>
<meta property="og:description" content="<?php echo wp_strip_all_tags(get_post_field('post_content', $id)); ?>">
<?php } else { ?>
<meta property="og:description" content="Offering top quality website design & web development for Drupal, Wordpress. Based in Fredericksburg VA and Northern Virginia. Specializing in content management web sites and customized user experience.">
<?php } ?>
<meta name="description" content="Offering top quality website design & web development for Drupal, Wordpress. Based in Fredericksburg VA and Northern Virginia. Specializing in content management web sites and customized user experience.">
<meta name="keywords" content="website, web, design, fredericksburg virginia, premium quality website development, fredericksburg, CMS, Drupal, WordPress, Joomla, 22401, Virginia, Northern Virginia, 22081, SEO, Programming, HTML, Old Town, Update, hosting">
<?php wp_head(); ?>
以上是关于html Wordpress - 附加元标记的主要内容,如果未能解决你的问题,请参考以下文章
PHP 删除Wordpress生成器元标记
在 Wordpress 的元标记中获取页面 URL 的最佳方法是啥?
删除Wordpress生成器元标记
Wordpress删除机器人元标记noindex
如何使用 JavaScript 将脚本、链接和元标记附加到头部?
Wordpress/Bootstrap 模板中的隐藏标记