FAQ

固定ページをフロントに指定した際に「おすすめ記事」が記事下に表示されてしまう。

固定ページを表示設定にてフロントページに指定した際に、「おすすめ記事」を上部に表示するのみにチェックを入れてるにも拘らず記事下に表示されてしまう件

「外観」>「テーマの編集」のpage.php

<?php if ( isset($GLOBALS['stdata69']) && $GLOBALS['stdata69'] === 'yes' ) {
						get_template_part( 'sns' ); //ソーシャルボタン読み込み 
					} ?>

					<?php get_template_part( 'popular-thumbnail' ); //任意のエントリ ?>

<?php get_template_part( 'popular-thumbnail' ); //任意のエントリ ?>

<?php //任意のエントリ
	if( ( is_page() ) && ( isset($GLOBALS['stdata41']) && $GLOBALS['stdata41'] === 'yes' ) ){ //固定記事の場合
		if ( isset($GLOBALS['stdata5']) && $GLOBALS['stdata5'] === 'yes' ) {
			get_template_part( 'popular-thumbnail-off' ); 
		}else{
			get_template_part( 'popular-thumbnail-on' ); 
		}
	}elseif( ( is_home() || is_front_page() ) && ( isset($GLOBALS['stdata59']) && $GLOBALS['stdata59'] === 'yes' ) ){ //トップ記事の場合
		if ( isset($GLOBALS['stdata5']) && $GLOBALS['stdata5'] === 'yes' ) {
			get_template_part( 'popular-thumbnail-off' ); 
		}else{
			get_template_part( 'popular-thumbnail-on' ); 
		}
	}
?>

に変更お願いします。

-FAQ