WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Page not displaying when link added

[Resolved] Page not displaying when link added

  • Hi there,

    I have recently started using WordPress, and am loving it so far.

    I’m having an issue with some pages. I only want them to be accessible via one of my menu items, and don’t want them displayed in the menu themselves. I had this working fine, until I added several links on each of these pages. The links were going to go onto other pages which also wouldn’t be accessible via the main menu.

    For some reason, the pages are no longer displaying, although the page id is exactly the same. The only way I can get them to display is by publishing them, and then they show up in the main menu, which I don’t want.

    Any help would be very much appreciated. You can check the site out if you like at http://www.swanseatabletennis.co.uk. Its the ‘Premier, Divisions 1, 2 and 3 that I want to be only accessible via the Divisions button of the menu.

    Cheers

Viewing 8 replies - 1 through 8 (of 8 total)
  • That theme, Peaceful Rush, uses the template tag, wp_list_pages(), so you could use the exclude or include parameter to achieve your results.

    You’ve probably changed the code to print Menu instead of Pages, so just add the appropriate parameter that works for you (include is probably the way to go).

    Thanks for the speedy response!

    Now I just need to figure how the hell to to what you’ve told me to do!

    Could anybody help me implement these changes that Michael has suggested?

    Well I’ll start with one question. Did you change your theme’s sidebar.php file to display the word “Menu” over your Page links (About, Divisions, …Gallery etc)?

    Not to my knowledge….

    Come on Michael, don’t tease me…!

    Okay, then you must be using Widgets.

    If so, then in the Pages widget, just add the Pages you want excluded into the Exclude box on that widget’s configuration. If you want pages 5,7, and 8 excluded enter 5,7,8 in that box.

    You Sir, are a genius.

    Thank you so much for you patience with a rookie like me.

    You’re very kind.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Page not displaying when link added’ is closed to new replies.