kriesi WordPress pagination not working its goes to 404 page


I have Taxonomy with name states and term in that taxonomy California
this is how my pagination link looks
the pagination code is in
Am getting taxonomy terms with the permalink and then click on that taxonomy on the other page am getting posts related to that taxonomy everhitngs working fine but pagination creating an issue
here is working example

this is the pagination that I use:

/*********************** here is my code***********
$term = get_queried_object();
$paged = get_query_var('paged') ? get_query_var('paged', 1) : get_query_var('page', 1);
$args = array(
    'post_type' => 'clinics',
    'order' => 'ASC',
    'tax_query' => array(
            'taxonomy' => 'states',
            'field' => $term->slug, //can be set to ID
            'terms' => $term->term_id //if field is ID you can reference by cat/term number
    'posts_per_page' => 1,
    'paged' => $paged

<?php addiction_pagination($the_query->max_num_pages);?>
, Jamil Ahmad 3 years 2019-10-28T04:54:33-05:00 0 Answers 76 views 0

Leave an answer