ktai styleでカスタムフィールド(php the_meta)
4件の返信を表示中 - 1 - 4件目 (全4件中)
-
the_meta()は WordPress ループの中でないと使えませんが、どのテンプレートのどの辺に挿入していますか?作者の方のご回答、恐縮です!
/wp-content/themes/leftmenu内のsingle.php
というところで。<?php get_header(); ?> <div id="content"> <div id="content-inner"> <div id="alpha"> <div id="alpha-inner"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="navi"> <a href="<?php bloginfo('url'); ?>">タイトル</a> > <?php the_category(' > ') ?><strong><?php wp_title(' > ') ?></strong> </div> <div id="entry-<?php the_ID(); ?>" class="entry-asset asset"> <div class="asset-header"> <h2 id="page-title" class="archive-title"><?php the_title(); ?></h2> </div> <div class="asset-content entry-content"> <!-- ※カスタムフィールド挿入 --> <?php the_meta(); ?> <br clear="both">としてます。
パソコンだと出るんですが、携帯だと見られません。
お手数おかけしますが、ご教示いただけましたら幸いです。/wp-content/themes/leftmenu内のsingle.php
ここにしか入れてないなら携帯テーマでは出ません。携帯テーマは、wp-content/themes/ 配下のテーマではなく、wp-content/plugins/ktai_style/themes/ の標準添付テーマもしくは wp-content/ktai-themes/ に入れた別途配布/改造/自作テーマを参照します。
したがって、現在使用している携帯テーマを複製して ktai-themes/ にコピーし、そこの single.php を改造してください。
4件の返信を表示中 - 1 - 4件目 (全4件中)
トピック「ktai styleでカスタムフィールド(php the_meta)」には新たに返信することはできません。