[wp-hackers] Strange bug with CPT
Andrew Nacin
wp at andrewnacin.com
Fri May 27 15:50:11 UTC 2011
On Fri, May 27, 2011 at 9:24 AM, Leo Baiano <ljunior2005 at gmail.com> wrote:
> Hi,
>
> I came across what appears to be a wordpress bug and was wondering if any
> of
> you ever experienced this or can explain what happens.
>
> I created a CPT (custom post type) is 'product' an archive file and
> archive-product.php to view the posts. The register_post_type is configured
> correctly by setting the "has_archive" => true, and the administrative
> panel
> CPT works perfectly, the problem is that when there are no posts
> registrations rather than see a message stating that it has no content
> error
> 404 file not found.
>
> Well, since it seems silly to publish a post the page works correctly, but
> I
> was curious.
>
> Has anyone experienced this or have any idea why this happens?
>
> The impression is that WP only creates the redirect after post when it has
> published.
Known bug: http://core.trac.wordpress.org/ticket/17316
More information about the wp-hackers
mailing list