Z-Blog无缝转移到WordPress Blogbus转换到 Wordpress WordPress专业主机 光影互联,cn1元,国际域名 55
Wopus中文社区渴望人才 WopusIDC推介返款开始啦 WopusIDC平台Cpanel教程 WopusIDC平台空间升级公告
 16 12
发新话题
打印

[主题修改] 杂志形主题Arthemia使用方法

本主题由 酋长 于 2008-10-15 22:32 推荐主题

杂志形主题Arthemia使用方法

今天回来的晚,才看见,请原谅


说明下用法,其实在作者站上已经说得很明白了,请仔细看原文如下:
引用:

  • The theme is widget-ready. By default, the navigation is divided into three sections: the top navigation bar, the right sidebar, and the footer. Everything in the sidebar and footer may be customized easily through WP Admin Panel. The links in the top navigation bar should be edited manually using any text-editor of your favorite. I prefer Notepad. The top navigation bar can be customized by editing the header.php file.
  • To use Arthemia, you need to have a category named “Headline” and “Featured”. Posts in those two categories will be shown in the headline and featured section of the front page.
  • To show the category bar in the front page properly, you have to put the correct category IDs to this line in the index.php file:
    <?php $display_categories = array(5,6,7,8,11); $i = 1;
    foreach ($display_categories as $category) { ?>
    Notice that 5, 6, 7, 8, and 11 are the IDs of the category to be shown in the category bar.
  • To show the post list in the front page properly, you have to put the correct excluded category IDs to this line in the index.php file:
    <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("cat=-9,-15&paged=$page&posts_per_page=2"); ?>
    Notice that 9 and 15 are the IDs for the category: Headline and Featured. That will make no duplication shown in the front page. posts_per_page=2 means there are 2 posts listed per page. The navigation links are shown after the last listed post. You can change that to Lester-Chan’s WP-Pagenavi if you like.
  • Thumbnails across the theme are configured using the Custom Fields. You should add a custom field called “Image” in every post and put the image filename and folder within the custom field value. For example, custom field name: Image; custom field value: wp-content/uploads/2008/04/pool.jpg. How about the different image sizes for each thumbnails? Well, no worry for that because Arthemia has its own image resizer. Just upload one big-sized image and everything is under control.
这主题无外乎注意几点:
1 要建立两个分类“Headline” and “Featured”. 用来显示上面的头条,以后发文章可以选择添加到头条显示
   如图


2 缩略图问题,上传图后记下地址。模板需要自定义字段。添加image字段,值写上地址,例如
/wp-content/uploads/2008/04/pool.jpg,既去掉你域名的地址。

3中间的分类栏内容问题,
如图

在INDEX里找到

<?php $display_categories = array(5,6,7,8,11); $i = 1;
foreach ($display_categories as $category) { ?>


5.6.7.8是需要显示你文章的分类

4 最后是下面文章问题
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("cat=-9,-15&paged=$page&posts_per_page=2"); ?>

找到这段。把不想显示在下面的分类写在CAT=-后面,每页显示几篇,更改PAGE=数量


[ 本帖最后由 50875683 于 2008-8-14 13:50 编辑 ]
附件: 您所在的用户组无法下载或查看附件
本帖最近评分记录
  • 酋长 金豆 +2 加分! 2008-6-29 02:04
不错,非常感谢啊~
cms主题的使用还是得下点功夫的,也算是本地化吧~~~

TOP

这个板子虽然从未试过,不过这个教程不错

TOP

嗯,这东西还是得花时间搞。

TOP

好复杂,没有付出就没要有好的效果!

TOP

我也觉得教程很不错
谢谢楼主了

TOP

搞不清楚
哪里可以下载得到

TOP

TOP

楼主的网站打不开!

不知道有没有朋友用过这个主题,这个主题有一个问题,就是将文章链接变成静态格式以后,首页的分页就会出现404错误,而换成动态格式后就不会出错。官方解释说是mysql 的一个BUG,这个解释是无法让人信服的,如果是mysql 的BUG,为什么其他主题不出现这个问题?本人研究了很久没有找到答案,如果有高手能解决这个问题,那就非常感谢了!

TOP

很喜欢这个主题,谢谢

TOP

顶顶顶
顺便问个问题

如上图
我想让介绍的文字少些,和图片对齐,应该改哪里的代码?谢谢
我的博客:www.tinghx.cn

TOP

 16 12
发新话题