[wp-hackers] template_redirect vs. single_template vs. other? (was $wp_rewrite->add_permstruct() vs. add_rewrite_rule())

Otto otto at ottodestruct.com
Thu Dec 10 16:16:01 UTC 2009

On Thu, Dec 10, 2009 at 10:10 AM, Otto <otto at ottodestruct.com> wrote:
> Example (off the top of my head, might need editing):
> add_rewrite_tag('%post_type%','.*');
> $wp_query->add_permastruct('post-type','/type/%post_type%');

Like I said, off the top of my head. That should be
$wp_rewrite->add_permastruct, of course.

Sent from Memphis, TN, United States

More information about the wp-hackers mailing list