【发布时间】:2012-04-04 02:09:50
【问题描述】:
我需要在 wordpress 中创建一个图库以显示最新的 3 篇文章。画廊将显示帖子的图像以及帖子的标题和帖子的一部分(wordpress 中 --more-- 标签之前的段落)。当我添加画廊显示的新帖子时,我需要它是动态的。
我做了以下代码
<div class="blogsgallery">
<?php query_posts('showposts=3'); ?>
<?php while (have_posts()) : the_post(); ?>
<p>
<h3>
<a href="<?php the_permalink() ?>"
rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_title(); ?></a>
</h3>
</p>
<div class="entry-content">
<div id="post-thumbnail">
//the size of thumbnail 150X150 px
<?php the_post_thumbnail(array(150,150)); ?>
</div>
//The code will show only the text before the "Read More ..." tag !
<?php
global $more;
$more = 0;
the_content("Read More ...");
?>
</div>
<?php endwhile; ?>
</div>
这是一个循环显示最新的 3 个帖子。我需要使它成为一个滑块容器。在特定时间后,即 1 分钟,幻灯片 1 向左移动并显示幻灯片 2,等等...
更多信息请看照片:
【问题讨论】:
标签: wordpress wordpress-theming