有没有人有一个想法在CSS会把下面的链接块?如何做一个WordPress的链接块?
<div class="one_third">
<?php
//The Query
query_posts('posts_per_page=1&cat=15');
//The Loop
if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?></small>
<?php if (has_post_thumbnail()) the_post_thumbnail('medium-thumbnail'); ?>
<div class="entry">
<p><a style="display: block;" rel="bookmark" href="<?php the_permalink(); ?>"><?php echo strip_tags(get_the_excerpt());?></a></p>
对不起,没有职位符合您的条件。
感谢
你能发表吗?生成的html和你的css? – Sotiris 2011-06-05 15:52:37
你是什么意思的一个“链接块”?你想要禾潜水工作就像一个链接? – 2011-06-05 16:04:50
@大卫是的,我希望“one_third”div包装内的所有东西都成为一个链接。请参阅下面的代码。 感谢 – Nsokyi 2011-06-06 19:07:27