关于WP-PostViews如何得到这种效果?
我想要这种效果[attach]5103[/attach]
就是这一部分
[attach]5102[/attach]
请问在[b]index.php[/b] 哪个位置代码?
代码是<?php if(function_exists('the_views')) { the_views(); } ?>
我就是不知道放在哪个位置,总是说合适的位置 可我不知道哪合适啊?
还有哪个12 comments是什么插件呢?怎么安装?
谢谢各位了! 这个是评论数
<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
关于WP-PostViews如何得到这种效果?
请问2979 views效果的代码放哪个位置呢?谢谢! 我又不知道你主题是什么样的结构 [url=http://www.potsun.com/]www.potsun.com[/url] 是这样的 您看看 呵呵 谢谢哦我怎么不能给你发消息啊!提示什么验证错误
[[i] 本帖最后由 psdty 于 2008-9-30 21:42 编辑 [/i]] 在INDEX.php中找到<div class="footer"></div>
替换为
<div class="footer"><?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> | <?php if(function_exists('the_views')) { the_views(); } ?>
</div> <div class="postdata">
<span class="category"><?php the_category(', ') ?></span>
<span class="date"><?php the_time('Y-m-d') ?></span>
<span class="comments"><?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?></span>
</div><!--.postdata-->
<div class="entry">
<?php the_content('Read more...'); ?>
</div>
<?php the_tags( '<p>Tags: ', ', ', '</p> ');?>
<?php if(function_exists('the_views')) { the_views(); } ?>
</div>
这是我的index.php代码 你说的那个代码怎么放呢?谢谢! 在INDEX.php中找到<div class="footer"></div>
替换为
<div class="footer"><?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> | <?php if(function_exists('the_views')) { the_views(); } ?>
</div> 右边日历日期上的蓝色边框是特意弄得么?感觉有点突兀。。 你把皮肤给我。。 现在成这种效果呢?您再进[url=http://www.potsun.com/]www.potsun.com[/url]看看!呵呵! 加色部分是我改过的 我把我index.php的代码 发个完整的给您看下吧!
9楼的朋友 我那日历只要在那一天写文章 他自动变蓝色的!
<?php get_header(); ?>
<div id="main-block">
<div id="content">
<?php if (have_posts()) : ?>
<ul>
<?php while (have_posts()) : the_post(); ?>
<li class="post" id="post-<?php the_ID(); ?>">
<div class="content">
<div class="title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="post-date">
<div class="month"><?php the_time('M') ?></div>
<div class="day"><?php the_time('d') ?></div>
</div>
[color=olive] </div>
<div class="postdata">
<span class="category"><?php the_category(', ') ?></span>
<span class="date"><?php the_time('Y-m-d') ?></span>
<div class="footer"><?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> | <?php if(function_exists('the_views')) { the_views(); } ?>
</div>
</div><!--.postdata-->
<div class="entry">
<?php the_content('Read more...'); ?>
</div>
<?php the_tags( '<p>Tags: ', ', ', '</p> ');?>
<?php if(function_exists('the_views')) { the_views(); } ?>
</div>
<div class="footer"><?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> | <?php if(function_exists('the_views')) { the_views(); } ?>
</div>
[/color] </li>
<?php endwhile; ?>
</ul>
<div class="nav-entries">
<span class="prev"><?php next_posts_link('<span>« Previous Entries</span>') ?></span>
<span class="next"><?php previous_posts_link('<span>Next Entries »</span>') ?></span>
</div>
<?php else : ?>
<h2 class="t-center">Not Found</h2>
<p class="t-center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div><!--#content-->
</div><!--#main-block-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
[[i] 本帖最后由 psdty 于 2008-9-30 21:59 编辑 [/i]] <?php get_header(); ?>
<div id="main-block">
<div id="content">
<?php if (have_posts()) : ?>
<ul>
<?php while (have_posts()) : the_post(); ?>
<li class="post" id="post-<?php the_ID(); ?>">
<div class="content">
<div class="title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="post-date">
<div class="month"><?php the_time('M') ?></div>
<div class="day"><?php the_time('d') ?></div>
</div>
</div>
<div class="postdata">
<span class="category"><?php the_category(', ') ?></span>
<span class="date"><?php the_time('Y-m-d') ?> | <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> | <?php if(function_exists('the_views')) { the_views(); } ?></span>
</div><!--.postdata-->
<div class="entry">
<?php the_content('Read more...'); ?>
</div>
<?php the_tags( '<p>Tags: ', ', ', '</p> ');?>
<?php if(function_exists('the_views')) { the_views(); } ?>
</div> </li>
<div class="footer"><?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> | <?php if(function_exists('the_views')) { the_views(); } ?> </div>
<?php endwhile; ?>
</ul>
<div class="nav-entries">
<span class="prev"><?php next_posts_link('<span>« Previous Entries</span>') ?></span>
<span class="next"><?php previous_posts_link('<span>Next Entries »</span>') ?></span>
</div>
<?php else : ?>
<h2 class="t-center">Not Found</h2>
<p class="t-center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div><!--#content-->
</div><!--#main-block-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
大致这样,可能还有CSS的修改 这个。。
<?php get_header(); ?>
<div id="main-block">
<div id="content">
<?php if (have_posts()) : ?>
<ul>
<?php while (have_posts()) : the_post(); ?>
<li class="post" id="post-<?php the_ID(); ?>">
<div class="content">
<div class="title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="post-date">
<div class="month"><?php the_time('M') ?></div>
<div class="day"><?php the_time('d') ?></div>
</div>
</div>
<div class="postdata">
<span class="category"><?php the_category(', ') ?></span>
<span class="date"><?php the_time('Y-m-d') ?> | <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> | <?php if(function_exists('the_views')) { the_views(); } ?></span>
</div><!--.postdata-->
<div class="entry">
<?php the_content('Read more...'); ?>
</div>
<?php the_tags( '<p>Tags: ', ', ', '</p> ');?>
<?php if(function_exists('the_views')) { the_views(); } ?>
<div class="footer"><?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> | <?php if(function_exists('the_views')) { the_views(); } ?> </div>
</div> </li>
<?php endwhile; ?>
</ul>
<div class="nav-entries">
<span class="prev"><?php next_posts_link('<span>« Previous Entries</span>') ?></span>
<span class="next"><?php previous_posts_link('<span>Next Entries »</span>') ?></span>
</div>
<?php else : ?>
<h2 class="t-center">Not Found</h2>
<p class="t-center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div><!--#content-->
</div><!--#main-block-->
<?php get_sidebar(); ?>
<?php get_footer(); ?> 好的!全部解决掉了!谢谢你!You are my hero! ^_^ 应该是我最后一个回复的代码啊 学习
页:
[1]