我想在我的跨苹果 wordress 主题中更改帖子循环的设计。而不是标题底部的大缩略图和小描述,我希望小缩略图(200x200)直接显示在右侧,标题和小描述将显示在左侧(如新闻广播 wordpress 主题中)
这是我的循环的外观: http ://cor.co.il/info
我希望帖子循环看起来像这样:http ://www.kriesi.at/themes/newscast/category/community/
我该如何管理?
我想在我的跨苹果 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