ورود

View Full Version : سوال: نمایش ندادن پست ها در WordPress



ABZiko
یک شنبه 07 دی 1393, 13:20 عصر
سلام، این کد قسمت محتوی بنده برای WordPress هست :


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

<div class="content">
<div class="title"><i class="livicon" data-name="align-justify"></i><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
<div class="contentImage"><?php if ( has_post_thumbnail() ) {the_post_thumbnail(); } ?></div>
<div class="contentText"><?php the_content(); ?></div>
<br>
<?php mw_Likes(get_the_ID()); ?><br>
<?php if(function_exists('wp_ulike')) wp_ulike('get'); ?><br>

<i class="livicon" data-name="user" data-color="#AAA"></i><span>نویسنده : <?php the_author(); ?></span><br><br>
<i class="livicon" data-name="timer" data-color="#AAA"></i><span>انتشار : <?php the_date(); ?></span><br><br>
<i class="livicon" data-name="thumbnails-small" data-color="#AAA"></i><span>دسته بندی : <?php the_category(); ?></span><br><br>
<i class="livicon" data-name="eye-open" data-color="#AAA"></i><span><?php echo getPostViews(get_the_ID());?></span><br><br>
<i class="livicon" data-name="comment" data-color="#AAA"></i><span><?php the_comment(); ?></span><br><br>

<a href="<?php the_permalink(); ?>"><button class="readMore">ادامه ...</button></a>
</div>

<?php endwhile; ?>
<?php endif; ?>



اما چیزی نمایش نمی ده، چرا؟ به نظر شما می تونه از چیز باشه؟

mostafae
یک شنبه 07 دی 1393, 14:36 عصر
شاید ایراد از استایلهایی هست که به محتوای کانتنت ها دادی ...

ABZiko
دوشنبه 08 دی 1393, 18:28 عصر
.content,.catsContent{
width:100%;
height:auto;
background-color:#E6E6E6;
border-bottom:10px solid #BBB;
margin-top:30px}

.title{
width:100%;
height:40px;
background-color:#1DA7E1;
border-left:5px solid #147299}

.content .livicon{
margin-right:10px}

.catsContent .livicon{
margin-right:10px}

.livicon,.livicon + a{
float:right}

.livicon{
padding-top:3px}

.livicon + a{
padding:10px 15px}

.title a{
color:#FFF !important}

.contentImage{
max-width:400px;
height:400px;
background-color:#FFF;
border:1px solid #AAA;
font:12px 'Segoe UI';
margin:20px auto;
transition:ease 500ms}

.contentImage img{
width:100%;
height:100%}

.contentText{
width:auto;
height:auto;
font:12px 'Segoe UI';
margin:10px}

.contentText a{
color:#000 !important}

.more-link{
display:none}



فکر نکنم مشکلی داشته باشه .