WordPress.org

Forums

Custom Taxonomies with Pagination getting 404, Page Not Found (1 post)

  1. kutailang
    Member
    Posted 11 months ago #

    I have created a custom taxonomy for a custom post type called activity:

    register_taxonomy(
    		'period',
    		array('activity'),
    		array(
    			'hierarchical' => true,
    			'labels' => $labels,
    			'show_ui' => true,
    			'query_var' => true,
    			'rewrite' => array( 'slug' => 'period' ),
    		)
    );

    I create a Template file named taxonomy-period.php
    And I add a category for this taxonomy,And it's slug is today,

    And the period archives page worked.
    The url is:http://localhost/hsns/active/period/today

    But the http://localhost/hsns/active/period/today/page/2 goes to 'page not found'

    And http://localhost/hsns/active/period/today/page/1 goes to 'page not found' too.

    http://localhost/hsns/index.php?period=today&paged=1 worked;
    http://localhost/hsns/index.php?period=today&paged=2 goes to 'page not found',

    Can you guys help me? Thanks in advance!

Reply

You must log in to post.

About this Topic

Tags

No tags yet.