[wp-trac] [WordPress Trac] #25136: url_to_postid() fails but get_page_by_path() works, on a Woocommerce page
WordPress Trac
noreply at wordpress.org
Sun Aug 25 01:13:48 UTC 2013
#25136: url_to_postid() fails but get_page_by_path() works, on a Woocommerce page
--------------------------+------------------------------
Reporter: adiant | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.6
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Changes (by SergeyBiryukov):
* component: General => Query
Comment:
`/shop/` page in WooCommerce acts as an archive for "product" post type,
not as a regular page. Here's some info from Debug Bar plugin:
{{{
Request: shop
Query String: post_type=product
Matched Rewrite Rule: shop/?$
Matched Rewrite Query: post_type=product
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25136#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list