ThemeShaper Forums » Thematic

[closed]

Page Template with Latest Posts

(3 posts)
  • Started 3 years ago by jameskyle
  • Latest reply from jameskyle
  • This topic is not resolved
  1. I'm trying to create a new page template that allows me to create pages on my site that will automatically have the latest posts added to the bottom of the page in the same format as they would be displayed on the default homepage, the only difference being that I would like them to be the same width as the page content. To do this I'm making an edit of the "template-page-fullwidth.php" file renamed "template-page-fullwidth-with-posts.php".

    I presume that I'll have to add some php code to the template between where the page content ends and the footer begins.

    <div class="entry-content">
    <?php
    the_content()
    wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'thematic'), "</div>\n", 'number');
    edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>') ?>
    </div>
    </div><!-- .post -->
    <?php
    thematic_belowpost();

    // calling the comments template
    thematic_comments_template();

    // calling the widget area 'page-bottom'
    get_sidebar('page-bottom');

    ?>

    // in here perhaps?

    </div><!-- #content -->

    I'm not even sure if this is the best way to do it, and none of the code I add from other pages which use the blog posts seem to work. My knowledge of PHP is extremely limited, and any help on this would be gratefully appreciated (especially if I'm going about this all the wrong way.)

    Posted 3 years ago #
  2. I'm no closer despite trying various things, but there's hope... http://forums.themeshaper.com/topic/posts-on-a-page-retain-page-content#post-16052

    Still working on the full-width page/posts hybrid :)

    Posted 3 years ago #
  3. I've found a plugin that does something similar to what I'm looking for.

    http://wordpress.org/extend/plugins/pages-posts/

    The problem with this addon is that even when using the full width page template the widget area is visible.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.