我有jQuery的砌体我的网站上jQuery,砌体和图像处理?
http://www.lovejungle.com/dev/testenvironment/?cat=4
但对我的生活工作中,图像的处理方式我不能工作了。
有没有一种方法可以抓取后期精选图片?还是有一行代码抓住它?
这是我用我的index.php和categories.php页
<div id="container">
<div id="content">
<?php query_posts('posts_per_page=15'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink(); ?>" class="box col<?php echo rand(2,4); ?>">
<span class="title"><?php the_title(); ?></span>
<img src="<?php echo get_post_meta($post->ID, 'PostThumb', true); ?>" alt="" />
<span class="ex"><?php the_excerpt(); ?></span>
</a>
<?php endwhile; endif; ?>
</div>
</div>
的代码是从本教程 http://digwp.com/2010/08/randomized-grid-of-posts/#comment-1175
我知道这需要改变的代码
<img src="<?php echo get_post_meta($post->ID, 'PostThumb', true); ?>" alt="" />
或者这可能是我的图像输入方法不正确。
这就是我的目标 http://thoughtandtheory.com/collection/
我仍然不清楚图像是如何处理的例子吗?
我不敢踏入爱丛林。你可以张贴截图吗? – Alex 2010-11-08 08:08:09
对不起哈哈,爱丛林是悉尼澳大利亚的青年服装品牌。没有什么弹性! (和上面的链接是开发/测试网站),所以它基本上是修改后的二十个主题 – MDB 2010-11-08 08:10:09
@Alex这里是该网站的屏幕截图。希望它有效 - http://www.lovejungle.com/dev/testenvironment/images/masonry_screen.png – MDB 2010-11-08 10:45:31