-2
아래에 표시된 것처럼 PHP 함수를 echo 문이나 다른 방법으로 넣을 방법을 찾으려고합니다.echo 함수에 PHP 단축 코드 넣기
<?php
if (have_posts()) :
$i = 0;
$featuredPostNumber = 4;
while (have_posts()) : the_post();
$i++;
if($i==$featuredPostNumber){
echo '<a href="#"><div class="post-tweet"><h3><?php echo do_shortcode('[get_tweet_timeline username="crearegroup" number="3" showlinks="true" newwindow="true" nofollow="true" avatar="true"]'); ?></h3></div></a>' ;
}
else{
get_template_part('content', get_post_format());
}
endwhile;
endif;
?>
문자열 연결 http://php.net/manual/en/language.operators.string 동일하게 유효
. PHP – Schleis