Viewing 5 replies - 1 through 5 (of 5 total)
  • Same here. Using /%custom_taxonomy_slug%/%postname%/. Right URL, but 404.

    Same here. The link urls are good, but when clicked, the expected page does not show up.

    glennyboy

    (@glennyboy)

    Me too 404!

    Same issue here. 404’s … oddly enough some links fall through to a similar url with a different sublevel. (i.e. I set up a structure for “/donate” and /donate/event-name-1 will somehow redirect to /event/event-name-1 if it exists)

    BTW, I inserted this into the functions.php file and it’s working now:

    function my_custom_add_rewrite_rules( $wp_rewrite )
    {
    	$new_rules = array(
    		'donate/(.+?)/?$' => 'index.php?ch_cause=$matches[1]',
    	);
    
    	$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
    }
    add_action('generate_rewrite_rules', 'my_custom_add_rewrite_rules');

    Replace “ch_cause” with your post type and “donate” with the folder structure you want.

    Not great but at least a work around.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘It doesn't work at all’ is closed to new replies.