글 목록만 표시해줄때 archive.php 수정관련해서 – 한국워드프레스사용자모임 https://kopress.kr/topic/%ea%b8%80-%eb%aa%a9%eb%a1%9d%eb%a7%8c-%ed%91%9c%ec%8b%9c%ed%95%b4%ec%a4%84%eb%95%8c-archivephp-%ec%88%98%ec%a0%95%ea%b4%80%eb%a0%a8%ed%95%b4%ec%84%9c/feed/ Sun, 19 May 2024 12:28:02 +0000 https://bbpress.org/?v=2.6.9 ko-KR https://kopress.kr/topic/%ea%b8%80-%eb%aa%a9%eb%a1%9d%eb%a7%8c-%ed%91%9c%ec%8b%9c%ed%95%b4%ec%a4%84%eb%95%8c-archivephp-%ec%88%98%ec%a0%95%ea%b4%80%eb%a0%a8%ed%95%b4%ec%84%9c/#post-4444 <![CDATA[글 목록만 표시해줄때 archive.php 수정관련해서]]> https://kopress.kr/topic/%ea%b8%80-%eb%aa%a9%eb%a1%9d%eb%a7%8c-%ed%91%9c%ec%8b%9c%ed%95%b4%ec%a4%84%eb%95%8c-archivephp-%ec%88%98%ec%a0%95%ea%b4%80%eb%a0%a8%ed%95%b4%ec%84%9c/#post-4444 Tue, 31 May 2011 04:05:15 +0000 원정식 테마는 http://fthemes.com/의 eco mode 테마입니다

나름 검색도 해보고 관련글 찾아서 읽어봤는데

테마마다 소스도 틀려서 뭐 어떻게 해야 할지 모르겠네요

php 태그에서 이것도 지워보고 저것도 지워보고 새로고침해봐도

뜨는건 오류메세지 난무 ㅡㅠ

<?php get_template_part(‘content’, ‘before’); ?>

<div class=”content”>
<h2 class=”generic”><?php

/* If this is a category archive */
if (is_category()) { printf( __( ‘Category Archives: <span>%s</span>’, ‘themater’ ), single_cat_title( ”, false ) );
$the_template_part = ‘categories’;

/* If this is a tag archive */
} elseif (is_tag()) { printf( __( ‘Tag Archives: <span>%s</span>’, ‘themater’ ), single_tag_title( ”, false ) );
$the_template_part = ‘tags’;

/* If this is a daily archive */
} elseif (is_day()) { printf( __( ‘Daily Archives: <span>%s</span>’, ‘themater’ ), get_the_date() );
$the_template_part = ‘day’;

/* If this is a monthly archive */
} elseif (is_month()) { printf( __( ‘Monthly Archives: <span>%s</span>’, ‘themater’ ), get_the_date(‘F Y’) );
$the_template_part = ‘month’;

/* If this is a yearly archive */
} elseif (is_year()) { printf( __( ‘Yearly Archives: <span>%s</span>’, ‘themater’ ), get_the_date(‘Y’) );
$the_template_part = ‘year’;

/* If this is an author archive */
} elseif (is_author()) { printf( __( ‘Author Archives: <span>%s</span>’, ‘themater’ ), get_the_author() );
$the_template_part = ‘author’;

/* If this is a general archive */
} else { _e( ‘Blog Archives’, ‘themater’ ); $the_template_part = ‘archive’;}
?></h2>

<?php
get_template_part(‘loop’, $the_template_part);
?>
</div><!– .content –>

<?php get_template_part(‘content’, ‘after’); ?>

이건 archive.php 파일 내용인데 어디를 지워줘야

글제목만 표시되나요?

]]>
https://kopress.kr/topic/%ea%b8%80-%eb%aa%a9%eb%a1%9d%eb%a7%8c-%ed%91%9c%ec%8b%9c%ed%95%b4%ec%a4%84%eb%95%8c-archivephp-%ec%88%98%ec%a0%95%ea%b4%80%eb%a0%a8%ed%95%b4%ec%84%9c/#post-4445 <![CDATA[Reply To: 글 목록만 표시해줄때 archive.php 수정관련해서]]> https://kopress.kr/topic/%ea%b8%80-%eb%aa%a9%eb%a1%9d%eb%a7%8c-%ed%91%9c%ec%8b%9c%ed%95%b4%ec%a4%84%eb%95%8c-archivephp-%ec%88%98%ec%a0%95%ea%b4%80%eb%a0%a8%ed%95%b4%ec%84%9c/#post-4445 Thu, 02 Jun 2011 03:52:13 +0000 082net 위 파일내용으로 봐서는 archive.php에서는 무엇을 수정해도 원하시는 결과를 얻을 수 없습니다.

테마 폴더 내에서 loop.php, loop-categories.php, loop-tags.php … 등등 loop-{$the_template_part}.php 파일들을 수정해야 합니다.

테스트 삼아 loop.php, loop-categories.php 중 테마폴더에 존재하는 파일을 수정 한 뒤, 카테고리 목록 페이지를 확인해 보세요.

Avatar of 082net
Facebook 사용자 모임 그룹 도 함께 운영되고 있으며, 격 주로 미트업과 스터디를 진행하고 있으니 관심 있으신 분들의 많은 참여 바랍니다 🙂
]]>