Php 更改wordpress主题的帖子循环设计
我想改变我的交叉苹果wordress主题中帖子循环的设计。 与标题底部的大缩略图和小说明不同,我希望小缩略图(200x200)直接位于右侧,标题和小说明将显示在其旁边的左侧(如中所示) 以下是我的循环的外观: 我希望posts循环如下所示: 如何管理它?您必须更改主题中的“archive.php” 在其中,请尝试使用此循环:Php 更改wordpress主题的帖子循环设计,php,html,css,wordpress,loops,Php,Html,Css,Wordpress,Loops,我想改变我的交叉苹果wordress主题中帖子循环的设计。 与标题底部的大缩略图和小说明不同,我希望小缩略图(200x200)直接位于右侧,标题和小说明将显示在其旁边的左侧(如中所示) 以下是我的循环的外观: 我希望posts循环如下所示: 如何管理它?您必须更改主题中的“archive.php” 在其中,请尝试使用此循环: <?php while(have_posts()): the_post(); ?> *your html code for one post* <?
<?php while(have_posts()): the_post(); ?>
*your html code for one post*
<?php endwhile; ?>
要在循环中显示标题,请执行以下操作:
the_title();
和显示说明:
the_content();
有关更多信息,请查看此->自行解决
我不得不从以下内容更改行:
<?php the_post_thumbnail('650-200'); ?>
致:
在行动中看到它:
<?php the_post_thumbnail('650-200'); ?>
<?php the_post_thumbnail(array(200,200), array('class' => 'alignright')); ?>