WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Pages in Topics List

[Resolved] Pages in Topics List

  • When I add a new page (manage -> pages) it shows up in my list of pages in my left column, and also in my list of the 10 most recent posts on the right column. Is this supposed to happen in WordPress? Maybe I am misunderstanding what Pages are. Here’s my right column code where I do not want the pages to show up:

    <h1><?php _e("Recent Posts"); ?></h1>
    
    <ul>
    <?php
    
    foreach ($recentposts as $post) {
    
    if ($post->post_title == '')
    
    $post->post_title = sprintf(__('Post #%s'), $post->ID);
    
    echo "
    <li><a>ID)."'>";
    
    the_title();
    
    echo '</a></li>
    ';
    
    }
    
    ?>
    
    </ul>
    <?php endif; ?>
    
    	<?php endif; ?>		
    
    <br><br>
    <div class="subnav">
    <?php if ( !function_exists('dynamic_sidebar')
            || !dynamic_sidebar(1) ) : ?>
    
    		<?php if (function_exists('wp_theme_switcher')) { ?>
    
    <h1>Themes</h1>
    
    <?php wp_theme_switcher('dropdown'); ?>
    
    <?php } ?>
    </div>
    
    		<h1><?php _e('Archives');?></h1>
    <br>
    
    <ul>
    <li>
    <?php wp_get_archives('type=monthly'); ?>
    </li>
    </ul>
    <?php endif; ?>
    	</div>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Pages in Topics List’ is closed to new replies.
Skip to toolbar