저는 WordPress를 사용합니다.색인 페이지의 콘텐츠를 숨기고 게시가 열렸을 때 표시하는 방법은 무엇입니까?
제 아이디어는 정확히 stackoverflow입니다. i는 표시되지 않습니다 인덱스 페이지의 내용을 원하지만 opeded 때 게시물 내용의이 the_content()와 stackoverflow
<article id="container">
<?php if(have_posts()):?> <?php while(have_posts()): the_post();?>
<div class="post" id="post-<?php the_id(); ?>">
<div class="postmetadata small-font">
<ul>
<li><?php bawpvc_views_sc('post_view', 'bawpvc_views_sc'); ?></li>
<li><?php comments_popup_link();?></li>
</ul>
</div>
<div class="post-header">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php get_template_part('content', get_post_format()); ?>
<?php the_excerpt(); ?>
</div><br />
<div class="date small-font">
<ul>
<li><?php the_author()." " ;?></li>
<li><?php the_modified_date();?></li>
<li><?php the_category(', '." ")?></li>
</ul>
</div>
</div>
<?php endwhile; ?>
같이 표시됩니다 : the_excerpt와
() :
하지만 콘텐츠가 표시되지 않기를 바랍니다.
인덱스 페이지의 내용을 숨기는 것은 무엇을 의미합니까? 그것은 의미입니까 : 제목 만 표시합니까? 또한, 게시 한 코드는 index.php 또는 single.php에서 가져온 것입니까? –
예 메인 페이지에서만 제목을 shiwing ... 및 제목 및 stackoverflow 같은 콘텐츠를 보여주는 모든 게시물을 클릭하면 ... – pouya