Need help? Check out our Support site, then


Help removing sub-page from vertical menu

  1. I have a website that I am building and about to launch at

    http://www.tyndale-archers.co.uk

    The template was built in Artisteer (I am a teacher by trade, not a website builder!) but I now want to remove the "latest news" page under the "News" section of the site. (Note - we still want the News and other subpages attached to it, just not the lates news page).

    I tried putting the (suggested when googling) 'exclude' code within the below code but managed to lock myself out the site and had to go into the FTP files via my host to get it back!

    I think (thought?!) the correct place to place the exclude code was within this bit of code below:

    /* pages */

    function theme_get_list_pages($args = array()) {
    global $wp_query;
    $pages = &get_pages($args);
    if (empty($pages))
    return '';

    i.e.

    /* pages */

    function theme_get_list_pages($args = array()) {
    global $wp_query;
    $pages = &get_pages($args, 'exclude = 849);
    if (empty($pages))
    return '';

    849 being the page name for the latest news page.
    However this didn't work as descibed above!

    I've tried changing the template in Artisteer and then uploading along with content transfer (which means I have to re type/paste/edit all the content as this effectively wipes existing uploaded/created content) but with no success. I am loathed to move on with typing up all the content until this is fixed however for fear of loosing it for the 4th time!

    HELP!

    Many thanks

    The blog I need help with is roobearblog.wordpress.com.

  2. Free hosted WordPress.com blogs are the only blogs we provide support for on these WordPress.com support forums. That site is NOT a free hosted wordpress.com blog and you are posting to the wrong support forum.

    Support for your website software and any advice you need are provided on the WordPress.org support forums and they are here http://wordpress.org/support/ If you don't have a username account at WordPress.org, click that link and register one on the top right hand corner of the page that opens, so you can post to the correct support forums for your software.

Topic Closed

This topic has been closed to new replies.

About this Topic