I have one problem, i added taxonomy for Student list, via function do url rewrite:

function ex_rewrite( $wp_rewrite ) {

    $feed_rules = array(
        '(.+)'    =>  'index.php?student='. $wp_rewrite->preg_index(1)

    $wp_rewrite->rules = $wp_rewrite->rules + $feed_rules;
add_filter( 'generate_rewrite_rules', 'ex_rewrite' );

I can remove from browser student/jordan, and use only as Jordan, but Jordan has lessons list, and I need when click on Jordan - display Lessons list for Jordan only, and url should be jordan/lessons-list-jordan (lessons-list-jordan was added in post type: Lessons and for Lessons was added taxonomy Student list), really make this all?



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.