wordpress.org – How to show the clicked category related posts on category detail page?

Question

I have used a custom page using this code, these links redirect to Category detail page which showing “Nothing Found”. How can I show the clicked category related posts on category detail page? Note: I am using twentytwenty-child theme.

<?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
)); ?>

enter image description here

enter image description here

0
Muhammad Bilal 4 weeks 2021-08-22T02:50:18-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse