cocoonの場合
cocoon 親テーマファイルに <?php edit_post_link(); ?>
を書き込んで使っています。
投稿ページ tmp/single-contents.php
<?php //パンくずリストがメイントップの場合
if (is_single_breadcrumbs_position_main_top()){
get_template_part(‘tmp/breadcrumbs’);
} ?>
<?php edit_post_link(); ?>
<?php //本文テンプレート
get_template_part(‘tmp/content’) ?>
固定ページ tmp/page-contents.php
<?php //パンくずリストがメイントップの場合
if (is_page_breadcrumbs_position_main_top()){
get_template_part(‘tmp/breadcrumbs-page’);
} ?>
<?php edit_post_link(); ?>
<?php //本文の表示
get_template_part(‘tmp/content’) ?>
自分の覚書き