Make WordPress Core

Opened 3 years ago

Last modified 20 months 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:
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 (9)

comment:1 @SergeyBiryukov3 years ago

  • Component changed from General to Menus

comment:2 @ericlewis3 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)

comment:3 @Lorangeo3 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.

comment:4 @c3mdigital3 years ago

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

comment:5 @jdcohan3 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...

comment:6 @Lorangeo3 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.

comment:7 @alexfurr21 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,


comment:8 @helen20 months ago

Related: #24975

Note: See TracTickets for help on using tickets.