0

我使用此代码使用了自定义页面,这些链接重定向到显示“未找到任何内容”的类别详细信息页面。如何在分类详情页面显示点击的分类相关帖子?注意:我使用的是 20-child 主题。

<?php /* Template Name: Our Jobs */ ?>
<?php get_header(); ?>


<?php wp_list_categories(array(
    'parent'        =>  '17',
    'show_option_all'    => '0',
    'orderby'            => 'name',
    'order'              => 'ASC',
    'style'              => 'list',
    'show_count'         => 1,
    'hide_empty'         => 1,
    'use_desc_for_title' => 0,
    'child_of'           => 0,
    'feed'               => '',
    'feed_type'          => '',
    'feed_image'         => '',
    'exclude'            => '',
    'exclude_tree'       => '',
    'include'            => '',
    'hierarchical'       => 0,
   'title_li'           => __( '<h2>' . __( 'heading' ) . '</h2>' ),
    'show_option_none'   => __( 'No categories' ),
    'number'             => null,
    'echo'               => 1,
    'depth'              => 0,
    'current_category'   => 0,
    'pad_counts'         => 0,
    'taxonomy'           => 'category',
    'walker'             => null
)); ?>

在此处输入图像描述

在此处输入图像描述

4

0 回答 0