-1
나는 워드 프레스이 단축 코드 만워드 프레스 단축 코드는 더
나는 문제가 태그 또는 뭔가 키우면하지만 내 첫 번째 단축 코드를 키우면 생각<?php
function theme_tfw_posts()
{
?>
<?php
global $post;
$args = array('numberposts' => 5, 'offset'=> 1, 'category' => 1);
$myposts = get_posts($args);
foreach($myposts as $post) :
setup_postdata($post);
?>
$a=<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>;
<?php endforeach; ?>
<?php
return $a;
}
?>
<?php
add_shortcode('tfw_posts','theme_tfw_posts');
?>
이
세부 사항은 더 빨리 당신에게 좋은 대답을 얻을 것이다. 작동하지 않는다고 할 때 당신이 의미하는 것은 무엇입니까? 정확히 무슨 일이 일어나고 어떻게 될 것으로 예상되는 것과 다른가요? – FoolishSeth