WordPressの基本タグまとめ

カテゴリーページへ使う記事へのリンクタグ

<?php the_permalink(); ?>
/*example*/
<a href="<?php the_permalink(); ?>">テキストテキスト</a>

カスタムフィールドを改行ありで表示

<?php echo nl2br(post_custom('wpcf-work_time')); ?>

Copyright © All Rights Reserved · Green Hope Theme by Sivan & schiy · Proudly powered by WordPress