How to add custom permalink struct with DYNAMIC author to a Custom Post Type


I created a CPT called column. I want to add a custom permalink struct ONLY to this CPT:


I need to pass the author CPT in the link, too.

I already set the slug inside the attribute rewrite in register_post_type()`:

'rewrite' => [
                    'slug' => '/columnists',

Is there any way to dynamic the struct permalink of this CPT?

alfredo 4 weeks 2022-10-29T23:45:00-05:00 0 Answers 0 views 0

Leave an answer