• I am trying to exclude pages from the list and have found the correct code to remove them;

    <?php wp_list_pages(‘exclude=17,38’ ); ?>

    However I am having trouble with what .php file to put the code into. I have a feeling it’s located in the header.php, but where to put the string?

    I’m not a coder and I have no clue, the site is http://www.picturesdosellhouses.com

    The header looks like this:
    <?php
    global $wp_version, $shortname;;

    //Get the custom css string
    $body_css = get_BodyCSS();

    //Set a class name for internal pages
    $subclass = ”;
    if(!is_home() || isset($_GET[‘paged’]))
    $subclass = ‘internalpage’;
    ?>

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>
    <head profile=”http://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <title>
    <?php echo ($title = wp_title(‘–’, false, ‘right’)) ? $title : ”; ?><?php echo ($description = get_bloginfo(‘description’)) ? $description : bloginfo(‘name’); ?>
    </title>

    <meta name=”author” content=”<?php bloginfo(‘name’); ?>” />
    <link rel=”shortcut icon” href=”<?php bloginfo(‘template_directory’); ?>/images/favicon.ico” type=”image/x-icon” />
    <link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php wp_enqueue_script(‘jquery’); ?>
    <?php if (is_singular()) wp_enqueue_script(‘comment-reply’); ?>
    <?php wp_head(); ?>

    <link href=”<?php bloginfo(‘template_url’); ?>/style.css” type=”text/css” rel=”stylesheet” />
    <?php if(get_skinDir()):?>
    <link href=”<?php bloginfo(‘template_url’); ?>/images/<?php echo get_skinDir();?>/style.css” type=”text/css” rel=”stylesheet” />
    <?php endif;?>

    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/js/superfish.js”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/functions.js”></script>

    <!–[if gte IE 5.5]>
    <style type=”text/css”>.post img, .page img, .customhtml img {width: expression(this.width > 495 ? 495: true) }</style>
    <![endif]–>
    </head>

    <body <?php echo (version_compare($wp_version, ‘2.8’, ‘>=’)) ? body_class($subclass) : ‘class=”‘.$subclass .'”‘?> <?php echo ($body_css) ? ‘style=”‘.$body_css. ‘”‘ : ”?>>

    <div id=”bg” <?php echo (get_option(‘tbf2_header_image_file’)) ? ‘style=”background-image:url(‘.get_option(‘tbf2_header_image_file’). ‘)”‘ : ”?>>
    <div id=”wrapper”>
    <div id=”shadow”>

    <div id=”header”>
    <h1 id=”logo”>
    <?php if (get_option(‘tbf2_logo_header’) == “yes” && get_option(‘tbf2_logo’)) { ?>
    /”><img src=”<?php echo get_option(‘tbf2_logo’); ?>” title=”<?php bloginfo(‘name’); ?> –
    <?php bloginfo(‘description’); ?>” alt=”<?php bloginfo(‘name’); ?> – <?php bloginfo(‘description’); ?>” />

    <?php } else { //If no logo, show the blog title and tagline by default ?>
    ” id=”blogname” style=”background:none;text-indent:0;width:auto”><span class=”blod”><?php bloginfo(‘name’); ?></span> <?php bloginfo(‘description’); ?>
    <?php } ?>
    </h1>

    <?php //Search box
    if(get_option(‘tbf2_search_header’) == “yes” || ((isset($_GET[‘preview’]) && isset($_GET[‘template’])) || $_SERVER[‘HTTP_HOST’] == ‘wp-themes.com’)) : ?>
    <?php include(TEMPLATEPATH.’/searchform.php’); ?>
    <?php endif; ?>

    </div>

    <?php if (is_home() && !isset($_GET[‘paged’])) :?>

    <div id=”featured-zone”>
    <div id=”slidespot”>
    <object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ width=”610″ height=”265″><param name=”movie” value=”http://www.photoshelter.com/swf/CSlideShow.swf?feedSRC=http%3A//papilios.photoshelter.com/gallery/Pictures-do-sell-houses/G0000e78ysW0qc54%3Ffeed%3Djson”></param><param name=”wmode” value=”opaque”></param><param name=”allowScriptAccess” value=”always”></param><param name=”allowFullScreen” value=”false”></param><param name=”bgColor” value=”#AAAAAA”></param><param name=”flashvars” value=”wmds=llQ6QNgpeC.p1Ucz7U.Z9sueQfBd5_sAKQB51m.TnfHFN1cv4owekUUlGnYNlTZ93koTkg–&target=_self&f_l=f&f_fscr=f&f_tb=f&f_bb=f&f_bbl=f&f_fss=off&f_2up=t&f_crp=t&f_wm=f&f_s2f=f&f_emb=f&f_cap=f&f_sln=f&imgT=f&cred=f&trans=xfade&f_link=f&f_smooth=f&f_mtrx=f&tbs=5000&f_ap=t&f_up=f”></param><!–[if !IE]><!–><object type=”application/x-shockwave-flash” data=”http://www.photoshelter.com/swf/CSlideShow.swf?feedSRC=http%3A//papilios.photoshelter.com/gallery/Pictures-do-sell-houses/G0000e78ysW0qc54%3Ffeed%3Djson&#8221; width=”610″ height=”265″ ><param name=”wmode” value=”opaque”></param><param name=”allowScriptAccess” value=”always”></param><param name=”allowFullScreen” value=”false”></param><param name=”bgColor” value=”#AAAAAA”></param><param name=”flashvars” value=”wmds=llQ6QNgpeC.p1Ucz7U.Z9sueQfBd5_sAKQB51m.TnfHFN1cv4owekUUlGnYNlTZ93koTkg–&target=_self&f_l=f&f_fscr=f&f_tb=f&f_bb=f&f_bbl=f&f_fss=off&f_2up=t&f_crp=t&f_wm=f&f_s2f=f&f_emb=f&f_cap=f&f_sln=f&imgT=f&cred=f&trans=xfade&f_link=f&f_smooth=f&f_mtrx=f&tbs=5000&f_ap=t&f_up=f”></param><!–<![endif]–><img src=”http://www.photoshelter.com/gal-kimg-get/G0000e78ysW0qc54/s/610/265&#8243; alt=”” /><!–[if !IE]><!–></object><!–<![endif]–></object>

    </div>

    <div id=”featured-wiz”>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(“Top Custom Content (Home)”) ) : ?>
    <div class=”widget”>
    <h2>ABOUT US</h2>
    <p>To replace this text, go to “Widgets” page and start adding your own widgets to the “Top Custom Widget”.</p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas dolor nibh, feugiat ut fringilla eget, porttitor ac nisl. Phasellus non urna tellus. Suspendisse varius pharetra purus sit amet aliquet. Donec fermentum mi quis dolor fermentum euismod. </p>
    <p>Vestibulum purus nunc, mollis pharetra aliquet ac, sodales ut risus.</p>
    <p style=”text-align:right”><img src=”<?php bloginfo(‘template_url’)?>/images/<?php echo (get_skinDir()) ? get_skinDir().’/’ : ”?>btn-learn-more.png” alt=”” /></p>
    </div>
    <?php endif; ?>
    </div>
    </div>
    <?php endif; ?>

    <div id=”container”>
    <div id=”<?php echo (!$subclass) ? ‘container-shoulder’ : ‘container-shoulder-plain’;?>”>
    <div id=”left-col”>

The topic ‘Exclude list’ is closed to new replies.