Extend/customize permalinks with wp_query and wp_rewrite
-
I searched but didn’t find an applicable question + answer.
As I understand it, I can make use of the classes WP_Query and WP_Rewrite to modify and add to the built-in permalinks, via a plugin (I’d like to do this the “proper” way rather than hack files or modify core variables directly). Is that correct?
If so, there are two things I’d like to do, and I’d really appreciate assistance. I’m an intermediate user of PHP, a beginner with specifically classes, and can create basic WordPress plugins, but the plugin hooks and these classes are completely foreign to me.
- Change my date urls from
%year%/%monthnum%/%day%
to%year%-%monthnum%-%day%
(dashes instead of slashes) - I’m going to be using
/log/%postname%
as the permalink structure.
I’d like to have my comments appear on a separate page, i.e:
/log/%postname%/discussion
and/%pagename%/discussion
.Can someone please show me or point to some kind of tutorial(s) on how to do this?
(Edit: using this forum is a bit strange. There’s no preview, and I accidentally hit enter and now can’t assign any tags to this thread. Sorry…)
- Change my date urls from
- The topic ‘Extend/customize permalinks with wp_query and wp_rewrite’ is closed to new replies.