Home 게시판 커뮤니티 Q&A Posted in SM5 | No Comments » 없어져 버렸습니다 ㅠ

20개 답변, 3 voices Last updated by Avatar of GosingaGosinga 18 years, 1 month 전
  • Avatar of GosingaGosinga
    Participant
    @Gosinga
    #1000

    님의 블로그 소스를 보면, 포스트 내용을 구성하는 소스는 다음과 같습니다.

    <div class="post" id="post-258">
    <h2>[Live]Always - Bonjovi</h2>
       <div class="entrytext">
          <p> 포스트 내용</p>
       </div>
    </div>

    위의 코드에서 코멘트를 출력하는 소스가 없음을 알 수 있습니다. 원래는 <p>포스트 내용</p> 다음에 아래의 소스가 출력되어야 합니다.

    <p class="postmetadata">Posted in Category | Edit | 0 Comment</p>

    이 소스가 출력되지 않고 있는 이유는 앞글에서도 언급했다시피, 아래의 코드를 wp-content/themes/your theme/index.php 파일에서 삭제했기 때문입니다.

    <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>

    위의 소스를 템플릿 파일(테마파일) 폴더 내의 index.php에 추가하시기 바랍니다.

    다시 한번 말씀드리지만, 님께서 현재 쓰고 있는 테마는 default 테마가 아니라, 님의 워드프레스타이틀 명의나 관리자 명의의 테마일 수 있습니다. 이럴 경우에는 wp-content/themes/default/index.php 파일을 수정하는 것이 아니라, wp-content/themes/your theme/index.php 파일을 수정하셔야 합니다.

    Avatar of GosingaGosinga
    Participant
    @Gosinga
    #1010

    님의 블로그 소스를 보면, 포스트 내용을 구성하는 소스는 다음과 같습니다.

    <div class="post" id="post-258">
    <h2>[Live]Always - Bonjovi</h2>
       <div class="entrytext">
          <p> 포스트 내용</p>
       </div>
    </div>

    위의 코드에서 코멘트를 출력하는 소스가 없음을 알 수 있습니다. 원래는 <p>포스트 내용</p> 다음에 아래의 소스가 출력되어야 합니다.

    <p class="postmetadata">Posted in Category | Edit | 0 Comment</p>

    이 소스가 출력되지 않고 있는 이유는 앞글에서도 언급했다시피, 아래의 코드를 wp-content/themes/your theme/index.php 파일에서 삭제했기 때문입니다.

    <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>

    위의 소스를 템플릿 파일(테마파일) 폴더 내의 index.php에 추가하시기 바랍니다.

    다시 한번 말씀드리지만, 님께서 현재 쓰고 있는 테마는 default 테마가 아니라, 님의 워드프레스타이틀 명의나 관리자 명의의 테마일 수 있습니다. 이럴 경우에는 wp-content/themes/default/index.php 파일을 수정하는 것이 아니라, wp-content/themes/your theme/index.php 파일을 수정하셔야 합니다.

    익명
    손님
    @
    #1001

    Gosinga님 제가 이해를 못하고 있다면 참으로 죄송합니다

    일단 저에 상황을 다시 말씀드리겠습니다
    플러그인은
    Custom Query String
    Akismet
    Hello Dolly
    Static Front Page
    WordPress Database Backup
    설치 되어있고

    카테고리속 글들을 목록과 날짜만으로 보고 싶어서 이곳 포럼의 쓰레드
    "지난 글 목록으로 보기?" 의 글을 참고 하여
    /html/blog/wp-content/themes/default /archive.php파일을 수정했습니다

    ——————내용입니다————————-
    <?php get_header(); ?>

    <div id="content" class="narrowcolumn">

    <?php if (have_posts()) : ?>

    <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    <?php /* If this is a category archive */ if (is_category()) { ?>
    <h2 class="pagetitle">Archive for the ‘<?php echo single_cat_title(); ?>’ Category</h2>

    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    <h2 class="pagetitle">Archive for <?php the_time(‘F jS, Y’); ?></h2>

    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <h2 class="pagetitle">Archive for <?php the_time(‘F, Y’); ?></h2>

    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    <h2 class="pagetitle">Archive for <?php the_time(‘Y’); ?></h2>

    <?php /* If this is a search */ } elseif (is_search()) { ?>
    <h2 class="pagetitle">Search Results</h2>

    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    <h2 class="pagetitle">Author Archive</h2>

    <?php /* If this is a paged archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
    <h2 class="pagetitle">Blog Archives</h2>

    <?php } ?>

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link(‘&laquo; Previous Entries’) ?></div>
    <div class="alignright"><?php previous_posts_link(‘Next Entries &raquo;’) ?></div>
    </div>

    <?php while (have_posts()) : the_post(); ?>

    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><small><?php the_time(‘Y m d’) ?><?php edit_post_link(‘Edit’, ‘ | ‘, ”); ?></small><br />

    <?php endwhile; ?>

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link(‘&laquo; Previous Entries’) ?></div>
    <div class="alignright"><?php previous_posts_link(‘Next Entries &raquo;’) ?></div>
    </div>

    <?php else : ?>

    <h2 class="center">Not Found</h2>
    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    ——————————끝입니다——————————-

    /html/blog/wp-content/themes/default

    하위디렉토리엔 /images 밖에 없습니다
    테마를 추가로 설치한건 전혀 없구요

    /html/blog/wp-content/themes/default/index.php파일을 열어보면

    말씀하신데로 루프구조안에 그 코드가 정확히 있습니다

    [/quote]

    익명
    손님
    @
    #1011

    Gosinga님 제가 이해를 못하고 있다면 참으로 죄송합니다

    일단 저에 상황을 다시 말씀드리겠습니다
    플러그인은
    Custom Query String
    Akismet
    Hello Dolly
    Static Front Page
    WordPress Database Backup
    설치 되어있고

    카테고리속 글들을 목록과 날짜만으로 보고 싶어서 이곳 포럼의 쓰레드
    "지난 글 목록으로 보기?" 의 글을 참고 하여
    /html/blog/wp-content/themes/default /archive.php파일을 수정했습니다

    ——————내용입니다————————-
    <?php get_header(); ?>

    <div id="content" class="narrowcolumn">

    <?php if (have_posts()) : ?>

    <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    <?php /* If this is a category archive */ if (is_category()) { ?>
    <h2 class="pagetitle">Archive for the ‘<?php echo single_cat_title(); ?>’ Category</h2>

    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    <h2 class="pagetitle">Archive for <?php the_time(‘F jS, Y’); ?></h2>

    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <h2 class="pagetitle">Archive for <?php the_time(‘F, Y’); ?></h2>

    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    <h2 class="pagetitle">Archive for <?php the_time(‘Y’); ?></h2>

    <?php /* If this is a search */ } elseif (is_search()) { ?>
    <h2 class="pagetitle">Search Results</h2>

    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    <h2 class="pagetitle">Author Archive</h2>

    <?php /* If this is a paged archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
    <h2 class="pagetitle">Blog Archives</h2>

    <?php } ?>

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link(‘&laquo; Previous Entries’) ?></div>
    <div class="alignright"><?php previous_posts_link(‘Next Entries &raquo;’) ?></div>
    </div>

    <?php while (have_posts()) : the_post(); ?>

    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><small><?php the_time(‘Y m d’) ?><?php edit_post_link(‘Edit’, ‘ | ‘, ”); ?></small><br />

    <?php endwhile; ?>

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link(‘&laquo; Previous Entries’) ?></div>
    <div class="alignright"><?php previous_posts_link(‘Next Entries &raquo;’) ?></div>
    </div>

    <?php else : ?>

    <h2 class="center">Not Found</h2>
    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    ——————————끝입니다——————————-

    /html/blog/wp-content/themes/default

    하위디렉토리엔 /images 밖에 없습니다
    테마를 추가로 설치한건 전혀 없구요

    /html/blog/wp-content/themes/default/index.php파일을 열어보면

    말씀하신데로 루프구조안에 그 코드가 정확히 있습니다

    [/quote]

    Avatar of GosingaGosinga
    Participant
    @Gosinga
    #1002

    Static Front Page 플러그인 때문에 그런 듯하군요.

    저는 이 플러그인을 써보지는 않았지만,
    이 플로그인은 블러그 홈(Front Page)을 디스플레이하는 index.php 파일을
    다른 파일로 대체하는 것으로 알고 있습니다.

    아, 어려워라^^;;;

    Avatar of GosingaGosinga
    Participant
    @Gosinga
    #1012

    Static Front Page 플러그인 때문에 그런 듯하군요.

    저는 이 플러그인을 써보지는 않았지만,
    이 플로그인은 블러그 홈(Front Page)을 디스플레이하는 index.php 파일을
    다른 파일로 대체하는 것으로 알고 있습니다.

    아, 어려워라^^;;;

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