【WordPress】固定ページにタグを挿入
固定ページで投稿タグを使えるようにするには、functions.phpに下記を追記すれば可能。
function add_tag_to_page() { register_taxonomy_for_object_type('post_tag', 'page'); } add_action('init', 'add_tag_to_page');
お電話でのお問い合わせ 090-3990-0645
wordpress-popular-posts
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/moja26/gm-moja.com/public_html/wp-includes/functions.php on line 6114health-check
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/moja26/gm-moja.com/public_html/wp-includes/functions.php on line 6114tinymce_templates
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/moja26/gm-moja.com/public_html/wp-includes/functions.php on line 6114固定ページで投稿タグを使えるようにするには、functions.phpに下記を追記すれば可能。
function add_tag_to_page() { register_taxonomy_for_object_type('post_tag', 'page'); } add_action('init', 'add_tag_to_page');
お電話でのお問い合わせ 090-3990-0645