[英]Change the posts loop design of a wordpress theme
我想改變的職位環路的設計在我的交叉蘋果wordress主題。 而不是標題底部的大縮略圖和小說明,我要在右側直接顯示小縮略圖(200x200),標題和小說明將顯示在左側(如新聞廣播wordpress主題中 )
這是我的循環的外觀: http : //cor.co.il/info
我希望帖子循環看起來像這樣: http : //www.kriesi.at/themes/newscast/category/community/
我該如何處理?
您必須在主題中更改“ archive.php”。
在其中嘗試使用此循環:
<?php while(have_posts()): the_post(); ?>
*your html code for one post*
<?php endwhile; ?>
要循環顯示縮略圖:
the_post_thumbnail();
要循環顯示標題:
the_title();
並顯示說明:
the_content();
有關更多信息,請查看此-> Wordpress Codex
自己解決!
我不得不更改以下行:
<?php the_post_thumbnail('650-200'); ?>
至:
<?php the_post_thumbnail(array(200,200), array('class' => 'alignright')); ?>
觀看實際操作: http : //cor.co.il/info
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.