Viewing 4 replies - 1 through 4 (of 4 total)
  • Without seeing how your site is set up, it’s hard to troubleshoot, but I’d suggest starting here… trying to find this in the template files and using the exclude parameter to exclude the pages you don’t want listed.

    https://codex.www.ads-software.com/Function_Reference/wp_list_pages

    Thread Starter Waup

    (@mm-blog)

    Thks Krissie. I changed:

    <h4><?php _e( 'Site-Map:', 'genesis' ); ?></h4>
    			<ul>
    				<?php wp_list_pages( 'title_li=' ); ?>
    			</ul>
    
    			<h4><?php _e( 'Categories:', 'genesis' ); ?></h4>
    			<ul>
    				<?php wp_list_categories( 'sort_column=name&title_li=' ); ?>
    			</ul>

    to:

    <h4><?php _e( 'Site-Map:', 'genesis' ); ?></h4>
    			<ul>
    				<?php wp_list_pages( 'title_li='  'exclude=PostNo' ); ?>
    			</ul>
    
    			<h4><?php _e( 'Categories:', 'genesis' ); ?></h4>
    			<ul>
    				<?php wp_list_categories( 'sort_column=name&title_li=' ); ?>
    			</ul>

    With the right post number in there, and it breaks the page.

    Any ideas? Thks

    just a syntax issue, should be:

    <?php wp_list_pages( 'title_li=&exclude=PostNo' ); ?>

    assuming you are changing PostNo to the actual number of the post… you can do multiple posts/pages, by separating them with a comma, so it would look like this:

    <?php wp_list_pages( 'title_li=&exclude=38,56,78' ); ?>

    Thread Starter Waup

    (@mm-blog)

    Perfect, solved. Thks KrissieV

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove Specific Pages from 404 Archive Page’ is closed to new replies.