• I’ve read the codex.wordpress.org about Page Template but I dont understand the placement of subpages. By using the template tag wp_list_pages(), WP will display each page accordingly. However, if I wanted to create a subpage and place it within the sidebar, how could I do that? Any help on how do to that it’s appreciated! Thank you very much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter julianomoreira

    (@julianomoreira)

    Hi Phucked, Thanks for the response. But Where Do I place that code? inside the loop or the Page template I have? I have a Page template that says:

    <?php get_header(); ?>

    <div id=”bloque”>
    <div id=”noticias”>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class=”entrada”>
    <h2 id=”post-<?php the_ID(); ?>”><?php the_title(); ?></h2>

    <?php the_content(“Continue reading “.the_title(”, ”, false).”…”); ?>
    <?php edit_post_link(‘Edit this entry.’, ”, ”); ?>
    <?php link_pages(‘Pages: ‘, ”, ‘number’); ?>
    </div>

    </div>

    <?php endwhile; endif; ?>

    <?php get_footer(); ?>

    Do I place that code inside here or the index within the loop?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How Do I place a subpage inside sidebar?’ is closed to new replies.