我的目标是不使用单独的博客页面,而是以这样的结构结束。。。
http://domain.tld/page/comments/
我相信我可以用基石插件~[http://wordpress.org/extend/plugins/cornerstone/ ] ~ 但我无法找出替代的循环代码,以及如何用加载帖子URL而不是类别的循环来替换Genesis中的循环。我可以看到此项目模板如何在循环中按类别显示帖子。
//GENESIS回路
<?php
/**
*
* Template Name: Projects
* This file handles blog posts with the category Projects within a page.
*
*/
remove_action(\'genesis_loop\', \'genesis_do_loop\');
add_action(\'genesis_loop\', \'custom_do_cat_loop\');
function custom_do_cat_loop() {
global $query_args; // any wp_query() args
$args= array(\'cat\' => \'30\');
genesis_custom_loop(wp_parse_args($query_args, $args));
}
genesis();
//基石环<?php if ( cnr_have_children() ) : while ( cnr_have_children() ) : cnr_next_child(); ?>
<h3><?php the_title(); ?></h3>
<div><?php the_excerpt(); ?></div>
<?php endwhile; endif; ?>
基石循环显示标题和摘要,其中包含基石中一节(一页)中每篇文章的链接。如何将Genesis中的循环替换为加载帖子URL而不是类别的循环?
我是一名设计师,不是开发人员,所以如果您能给我任何帮助,我将不胜感激。
特伦斯。