[英]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.