【发布时间】:2012-05-10 04:10:37
【问题描述】:
有没有办法将动态元标题中的一个单词大写?
基本上我在元标题中使用了一个 slug,但它是小写的。我想把那个单词大写,但我不确定最好的方法是什么?
<title><?php $taxonomy = 'propertytype'; $queried_term = get_query_var($taxonomy);$term = get_term_by( 'slug', $queried_term, $taxonomy ); echo $term->slug; ?> the rest of the thitle goes here</title>
有没有办法将标题中的slug大写?
非常感谢
保罗
【问题讨论】:
标签: css wordpress title meta capitalize