Attendance Managerというワードプレスのプラグインを少しカスタマイズしたいのですが、
いろいろ検索してもわからずじまいなので、ご質問をさせてください。
(PHPに関してかなり初心者ですが、よろしくお願いします。)
以下、編集したいところの箇所なのですが、
extract( $result ); if ( empty( $staff ) ) { printf( '<div class="alert">%s</div>', __( 'There are no staff today.', ATTMGR::TEXTDOMAIN ) ); } else { echo '<ul class="staff_block">'."\n"; foreach ( $staff as $s ) { $p = null; if ( $s->data[ATTMGR::PLUGIN_ID.'_mypage_id'] ) { $p = get_post( $s->data[ATTMGR::PLUGIN_ID.'_mypage_id'] ); } // Format $format = <<<EOD <section class="list"> <a href=""> <figure><img src="../images/sample1.jpg" alt="写真の説明"></figure> <h4>記事タイトル</h4> <p>ダミーテキストダミーテキストダミーテキスト <span class="sumi">ダミーテキスト</span></p> </a> </section> EOD;
上記のコードの中にワードプレスのテンプレートタグを挿入したいのですが、
<section class="list"> <a href="<?php echo get_permalink(); ?>"> <figure><?php the_post_thumbnail('thumbnail'); ?></figure> <h4><?php the_title(); ?></h4> <p><?php $custom_fields = get_post_custom($post_id); ?> <span class="sumi"><?php $custom_fields = get_post_custom($post_id); ?></span></p> </a> </section>
このように記載しても、PHPの記載のルールに従っていないようなので、
テンプレートタグがタグそのままで出力されてしま
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。