ThemeShaper Forums » Thematic


Page Template with Latest Posts

(3 posts)
  • Started 9 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">
    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><!-- .post -->

    // calling the comments template

    // calling the widget area '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 9 years ago #
  2. I'm no closer despite trying various things, but there's hope...

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

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

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

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.