Make WordPress Core

Opened 3 years ago

Last modified 7 weeks ago

#21773 new defect (bug)

Scheduled pages/posts should not appear in custom menus

Reported by: Lorangeo Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.0
Component: Menus Keywords: needs-patch needs-testing
Focuses: Cc:


When I add a scheduled page/post in a custom menu the page/post immediately appears in the front-end menu.

I think these scheduled pages/posts should only be visible in the front-end navigation when their scheduled time is reached (as it is the case with automatic menus). Otherwise the "Schedule" functionality makes no sense with custom menus, especially for pages.

Here is another forum post regarding this issue: http://wordpress.org/support/topic/custom-menu-support-for-scheduled-pagesposts

Change History (10)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Menus

#2 @ericlewis
3 years ago

  • Keywords reporter-feedback added

Could not replicate the bug on trunk with twentyeleven.

If no custom menu has been created, the default menu uses the function wp_page_menu, which via wp_list_pages get_pages queries only for pages that have a post status of 'publish', while any scheduled pages would have the post status of 'future.'

Last edited 3 years ago by ericlewis (previous) (diff)

#3 @Lorangeo
3 years ago

  • Keywords reporter-feedback removed

The default menu (which is automatically generated) is OK. The problem is with custom menus.

It should be possible to create a custom menu, add some scheduled pages to it, and expect that these scheduled pages will only appear in the front-end menu when their scheduled time is reached.

Sorry if I'm not clear but my English is somewhat limited.

#4 @c3mdigital
3 years ago

  • Type changed from defect (bug) to enhancement
  • Version set to 3.0

#5 @jdcohan
3 years ago


Private and Draft pages also appear (to all users, including non-logged-in) in a Primary Navigation menu which is based on a Custom Menu. My most recent confirmed test was with WordPress 3.4.2 and Twenty Ten 1.4.

Seems to me this is a defect. I'm just saying...

#6 @Lorangeo
3 years ago

  • Type changed from enhancement to defect (bug)

jdcohan is right. Pages set as "Private" or "Draft" still appear in custom menus, even for users that are not logged in and that should not be aware of these contents.

From the WP codex:

Private content is published only for your eyes, or the eyes of only those with authorization permission levels to see private content. Normal users and visitors will not be aware of private content.

Based on this I would also consider it a defect that hopefully shouldn't be too difficult to fix.

#7 @alexfurr
23 months ago

hi - this still seems to be a problem i.e. scheduled pages should NOT appear in a custom menu.
Any movement on this? I would imagine its quite a simple fix :) (he says!)

kind regards,


#8 @helen
21 months ago

Related: #24975

#10 @chriscct7
7 weeks ago

  • Keywords needs-patch needs-testing added
Note: See TracTickets for help on using tickets.