WordPressで記事サイトを作成しております。
Poup Makerというプラグインを使用しています。
記事の一覧ページでは<?php the_excerpt(); ?>で抜粋表示にして、
LINEのいいねと友達登録を行った後に、個別ページに飛ばして
続きが読めるようにすることはできますでしょうか。
single.phpにこのような記述をし
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <section class="content"> <?php the_excerpt(); ?> </section> <?php endwhile; endif; ?>
functions.phpに
function inc11_excerpt_more($post) { return '...'; } add_filter('excerpt_more', 'inc11_excerpt_more'); function inc11_wp_trim_excerpt($excerpt) { global $post; return $excerpt.'<a href="'.get_permalink($post->ID).'" class="more-link">続きを読む</a>'; } add_filter('wp_trim_excerpt', 'inc11_wp_trim_excerpt');
このように記述したのですが、
続きを読むための振り分けの方法がわかりません。
よろしくお願いいたします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。