0
나는 내 자신의 슬라이더를하려고합니다. 나는 거의 끝났지 만 제목이나 뭔가로 표시되도록 내 링크 URL이 필요합니다.이미지에 자막을 표시하는 wordpress
링크 및 표시를 얻으려면 어떻게해야합니까? 그건 내 코드
<?php
// The Loop
while ($the_query->have_posts()) : $the_query->the_post(); ?><li>
<?php
// Check if there's a Slide URL given and if so let's a link to it
if (get_post_meta(get_the_id(), 'wptuts_slideurl', true) != '') { ?>
<a href="<?php echo esc_url(get_post_meta(get_the_id(),'wptuts_slideurl', true)); ?>">
<?php }
// The Slide's Image
echo the_post_thumbnail();
// Close off the Slide's Link if there is one
if (get_post_meta(get_the_id(), 'wptuts_slideurl', true) != '') { ?>
</a> <?php } ?> </li>
<?php endwhile; ?>
yea! 고마워, 내가 직접 했어,하지만 나는 그것에 링크와 사용자 정의 이름을 줄 수 있도록 두 번째 필드 양식을 추가;)하지만 정확히 당신이 말한 방법;) – user2011199