[wp-trac] [WordPress Trac] #16626: CPT archive rewrite rule doesn't respect 'with_front' arg (was: get_post_archive_link() includes /blog/, when it shouldn't)

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 24 01:43:43 UTC 2011


#16626: CPT archive rewrite rule doesn't respect 'with_front' arg
--------------------------+--------------------
 Reporter:  scribu        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.1.1
Component:  Post Types    |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------
Description changed by scribu:

Old description:

> 0. Have WP MS activated, with subdirectories, not subdomains.
>
> 1. Register a custom post type, with has_archive => true.
>
> 2. On the main blog, call get_post_archive_link().
>
> The URL will include the /blog/ prefix, which will lead to a 404.

New description:

 0. Have WP MS activated, with subdirectories, not subdomains.

 1. Register a custom post type, with has_archive => true.

 2. On the main blog, call get_post_archive_link().

 The URL will include the /blog/ prefix, but it will lead to a 404, since
 the rewrite rule isn't correct.

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16626#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list