Change Permalink structure for Custom Post Types
-
Hi,
I have created two custom-post-types (‘photo’ and ‘photo365’) and all is well and good with them…except, I wish to change the permalink structure…
In settings I use the permalink structure:
https://www.myurl.co.uk/2012/01/sample-post/
This works fine for for type ‘posts’, but when I view a post of type ‘photo’ or ‘photo365’ the link is:
https://www.myurl.co.uk/photo/sample-post/
or
https://www.myurl.co.uk/photo365/sample-post/
how do I achieve https://www.myurl.co.uk/2012/01/photo365/sample-post/
where the month and year is part of the structure?
I have previously looked at other forum threads here and changed the line I have in the custom post declaration from
‘rewrite’ => true
to
‘rewrite’ => array(‘slug’=>”,’with_front’=>false)
but to no avail….
Any ideas?
- The topic ‘Change Permalink structure for Custom Post Types’ is closed to new replies.