Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post

you can try with this plugin (or see its code) https://wordpress.org/plugins/wp-better-permalinks/ It allows you change the custom friendly permalinks structure to Custom Post Type > Taxonomy > Post and Custom Post Type > Taxonomy instead of default WordPress structure. it Provides different permalinks structure pattern: Custom Post Type > Single Term (or Term tree) > … Read more

Add %post_id% to slug of custom post type and prevent the “unique slug” thing that WP does?

I don’t have much experience with coding rewrites, but could you just add $post->post_name into your return statement? return home_url(‘equipment/’ . $post->ID . ‘-‘ . $post->post_name ); There are a few other ways to change the permalinks that I have used that may also help you: The easiest way to change your permalink structure is … Read more

Change author base and slug in author link

i found out what i was doing wrong, i used this part like i mentioned add_filter( ‘request’, ‘wpse5742_request’ ); function wpse5742_request( $query_vars ) { if ( array_key_exists( ‘author_name’, $query_vars ) ) { global $wpdb; $author_id = $wpdb->get_var( $wpdb->prepare( “SELECT user_id FROM {$wpdb->usermeta} WHERE meta_key=’nickname’ AND meta_value = %s”, $query_vars[‘author_name’] ) ); if ( $author_id ) … Read more