我需要在wordpress中創建一個圖庫以顯示最新的3個帖子。圖庫將顯示帖子的圖像,帖子的標題和帖子的一部分(wordpress中的--more--標籤之前的段落)。我需要它是動態的,當我添加一個新的畫廊顯示的帖子。如何在Wordpress中創建內容滑塊
好,我做了下面的代碼
<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個向左移動和顯示幻燈片2,等等
請參閱有關更多信息,照片:
鏈接:[查詢回覆](http://codex.wordpress.org/Function_Reference/query_posts)[循環](http://codex.wordpress.org/The_Loop)[template_tags]( http://codex.wordpress.org/Template_Tags)[創建一個頁面模板](http://codex.wordpress.org/Pages#Page_Templates) – Brtrnd 2012-03-25 13:25:49
謝謝...但我怎麼做的職位畫廊?如果它是純html,則爲 – 2012-03-25 13:45:23
;將其創建爲靜態文件;在此之後,你將不得不看看你的循環是如何適應的。 – Brtrnd 2012-03-28 06:51:43