Home 게시판 커뮤니티 Q&A 태그 선택시 포스트를 목록으로 표시하고 싶습니다.(같은 질문이

4개 답변, 1 voice Last updated by Avatar of suineg11suineg11 17 years, 2 months 전
  • Avatar of suineg11suineg11
    Participant
    @suineg11
    #2552

    UTW 플러그인에 포함된 tag.php 파일을 사용중인 테마에 맞게 적당히 수정하시면 됩니다.

    예를 들어 포함된 파일을 살펴보면..

          <div class="post" id="post-<?php the_ID(); ?>">
             <div class="dateline"><span class="date"><?php the_time('DdMY') ?></span><span class="time"><?php the_time('hiA') ?> <!-- by <?php the_author() ?> --></span></div><h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
             <h3 class="tags"><?php UTW_ShowTagsForCurrentPost("commalist", array('last'=>' and %taglink%', 'first'=>'tagged %taglink%',)) ?></h3>

             <div class="entry">
                <?php the_content('Read the rest of this entry &raquo;'); ?>
             </div>

             <?php edit_post_link('Edit','','/'); ?><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?><br />
          </div>

    부분에 날짜, 제목 내용을 출력하는 부분인데 그중에서

             <div class="entry">
                <?php the_content('Read the rest of this entry &raquo;'); ?>
             </div>

    이 부분이 내용을 출력하는 부분이므로, 삭제하거나 주석처리하면 내용은 출력되지 않고 제목과 날짜등의 것들만이 출력되게 됩니다.

    페이지 당 글의 갯수는 Custom Query String을 사용하시면 손쉽게 지정하실 수 있습니다. 기본적으로 플러그인에 태그관련 설정이 없으므로, 이 글을 참고해서 태그관련 설정을 추가하신 뒤 사용해 보세요.

    Avatar of suineg11suineg11
    Participant
    @suineg11
    #2553

    블로그 주소 : http://www.chuchusays.com
    사용 테마 : Hyaline 1.05 (http://edblog.net/archives/517)
    사용 플러긴: UTW (테마에 tag.php가 없어서 플러그인에 포함된 파일을 수정, 사용중)

    워드프레스를 이제 막 사용하기 시작한 사용자입니다.

    글 제목처럼 태그페이지나 포스트에서 태그를 선택했을 경우, 같은 태그를 쓰는 포스트를 목록 형식(예: "날짜","제목")으로 출력시키고 싶습니다.

    이 곳 포럼에서 검색을 해보면 아래의 링크가 같은 문답인데,
    https://kopress.kr/forums/topic.php?id=157&highlight=utw+%B8%F1%B7%CF

    082net님의 답변처럼 tag.php를 수정하고 나면, 태그를 선택했을 경우 무한히 페이지 로딩이 반복되고, 선택한 결과를 출력하지 못하는 결과가 나옵니다.

    tag.php를 다른 식으로 수정해야 하는 것은 아닌지 알고 싶습니다.

    Avatar of suineg11suineg11
    Participant
    @suineg11
    #2555

    블로그 주소 : http://www.chuchusays.com
    사용 테마 : Hyaline 1.05 (http://edblog.net/archives/517)
    사용 플러긴: UTW (테마에 tag.php가 없어서 플러그인에 포함된 파일을 수정, 사용중)

    워드프레스를 이제 막 사용하기 시작한 사용자입니다.

    글 제목처럼 태그페이지나 포스트에서 태그를 선택했을 경우, 같은 태그를 쓰는 포스트를 목록 형식(예: "날짜","제목")으로 출력시키고 싶습니다.

    이 곳 포럼에서 검색을 해보면 아래의 링크가 같은 문답인데,
    https://kopress.kr/forums/topic.php?id=157&highlight=utw+%B8%F1%B7%CF

    082net님의 답변처럼 tag.php를 수정하고 나면, 태그를 선택했을 경우 무한히 페이지 로딩이 반복되고, 선택한 결과를 출력하지 못하는 결과가 나옵니다.

    tag.php를 다른 식으로 수정해야 하는 것은 아닌지 알고 싶습니다.

    Avatar of suineg11suineg11
    Participant
    @suineg11
    #2554

    감사합니다.
    언급해주신 코드를 삭제하고 출력표시 부분을 수정하니 다른 목록과 ‘똑같은’ 형식으로 나타납니다. ^0^

    Avatar of suineg11suineg11
    Participant
    @suineg11
    #2556

    감사합니다.
    언급해주신 코드를 삭제하고 출력표시 부분을 수정하니 다른 목록과 ‘똑같은’ 형식으로 나타납니다. ^0^

5 글 보임 - 1에서 5 까지 (총 5 중에서)
  • 답변은 로그인 후 가능합니다.