고수님들
다시 함 질문 올려봅니다.
에디터 이미지들을 슬라이드로 보여지게 하고 싶습니다.
Copy
<div id="case-details-carousel" class="case-details-carousel owl-carousel">
<div class="case-item">
<img src="img/hosting-post-1.jpg" alt="img">
</div>
<div class="case-item">
<img src="img/hosting-post-2.jpg" alt="img">
</div>
<div class="case-item">
<img src="img/hosting-post-3.jpg" alt="img">
</div>
</div>
여기 이미지들을 에디터이미지로 하고싶습니다.
|
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
마르스컴퍼니
4년 전
Copy
<?php
$matches = get_editor_image($view['wr_content'], false);
?>
<div id="case-details-carousel" class="case-details-carousel owl-carousel">
<div class="case-item">
<img src="<?php echo $matches[1][0] ?>" alt="img">
</div>
<div class="case-item">
<img src="<?php echo $matches[1][1] ?>" alt="img">
</div>
<div class="case-item">
<img src="<?php echo $matches[1][2] ?>" alt="img">
</div>
</div>
답변에 대한 댓글 1개
바이올렛9820
4년 전
4년 전
참고하세요. 댓글에 있는 내용도 적용하면 됩니다.
답변을 작성하려면 로그인이 필요합니다.
for문 이용해서 있는 갯수만큼만 적용했습니다.