Arthemia 2.0主题如何使用?
Arthemia 2.0主题怎么用?哪里有关于主题安装的教程?
[url=http://michaelhutagalung.com/2008/05/arthemia-magazine-blog-wordpress-theme-released/]http://michaelhutagalung.com/2008/05/arthemia-magazine-blog-wordpress-theme-released/[/url]
[img]http://michaelhutagalung.com/wp-content/uploads/2008/05/arthemia-front.jpg[/img] 没什么难的,建立headline和featured两个分类
中间部分<?php $display_categories = array(5,6,7,8,11); $i = 1;
foreach ($display_categories as $category) { ?>
中间的数字就是你分类的ID号,给你个建议,生成后直接写成
<div id="middle" class="clearfloat">
<div id="cat-1" class="category">
<span class="cat_title"><a href="http://www.xxxxx.com/category/life">生活琐事</a></span>
<center> <p> <a href="http://www.xxxxx.com/category/life">生活中的喜怒哀乐</a> </p> </center>
</div>
<div id="cat-2" class="category">
<span class="cat_title"><a href="http://www.xxxxx.com/category/qiwenqushi">奇闻趣事</a></span>
<center> <p> <a href="http://www.xxxxx.com/category/qiwenqushi">已知的,未知的,感兴趣的</a> </p> </center>
</div>
一共5个,类推就行了,
下面的正文部分
<?php
$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("cat=-3,-4&paged=$page&posts_per_page=3"); ?>
-3 ,-4就是除了分类ID3和4的,其余都有 page=3就是每页显示的文章数
或者是类似<?php query_posts('cat=3,4&showposts=4'); ?>这样的
文章前的图片是在写文章时建立名为 'Image' ('I'是大写)的自定义字段,键值就是
wp-content/uploads/2008/04/pool.jpg(举例).如果你使用的图片是外链的话就把
<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_option('home'); ?>/<?php
$values = get_post_custom_values("Image"); echo $values[0]; ?>&w=300&h=275&zc=1&q=100"
改为 <img src="<?php
$values = get_post_custom_values("Image"); echo $values[0]; ?>"
一共有3出修改(注意 外链图片建议使用PhotoZoom之类的软件改为合适大小)
注意全部是半角输入
基本就些问题了,还有的话接着盖楼吧 [url]www.10why.net[/url]
用的正是。。 [quote]原帖由 [i]gyk52l[/i] 于 2008-10-9 21:04 发表 [url=http://wordpress.org.cn/redirect.php?goto=findpost&pid=122797&ptid=21928][img]http://wordpress.org.cn/images/common/back.gif[/img][/url]
没什么难的,建立headline和featured两个分类
中间部分
中间的数字就是你分类的ID号,给你个建议,生成后直接写成
生活琐事
生活中的喜怒哀乐
奇闻趣事
已知的,未知的,感兴趣的
一共5个, ... [/quote]
:L 好复杂,晕了,不过谢谢你。我要好好学习! 慢慢的就会了
页:
[1]