[wp-trac] [WordPress Trac] #30609: CPT archive with pagination does not set current-menu-parent and current-menu-item after flip

WordPress Trac noreply at wordpress.org
Sat Jan 3 19:00:13 UTC 2015


#30609: CPT archive with pagination does not set current-menu-parent and current-
menu-item after flip
-------------------------------+------------------------
 Reporter:  beelde             |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Posts, Post Types  |     Version:  4.0.1
 Severity:  normal             |  Resolution:  duplicate
 Keywords:                     |     Focuses:  ui, docs
-------------------------------+------------------------
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Hi beelde - Thanks for the report. The reason why the current-menu-item
 logic is not working is because the menu item you are adding is a simple
 link - http://example.com/products/ - and from WP's point of view,
 http://example.com/products/page/2 is not the same thing as
 http://example.com/products.

 The most natural way for this to work would be for WP to introduce native
 support for menu items that link to post type archives. See #16075.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30609#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list