Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using static page for the front page display. I also have a page listed as posts page. I would like to know how to add html to this page. When I do add this it doesn't appear.

<div class="body_resize">
<div class="body1">
<h3>Service &amp; Maintenance</h3>
<span>How We Can Help</span>

</div>
</div>
share|improve this question

closed as not a real question by toscho Jul 22 '12 at 22:59

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

1 Answer

I found that if I add this in index.php where I want it. This will allow wordpress to output the contents of the post page while still showing the recent posts.

<?php
if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') && is_home() ) : the_post();
    $page_for_posts_id = get_option('page_for_posts');
    setup_postdata(get_page($page_for_posts_id));
?>
    <div id="post-<?php the_ID(); ?>" class="page">
        <div class="entry-content">
            <?php the_content(); ?>
            <?php edit_post_link('Edit', '', '', $page_for_posts_id); ?>
        </div>
    </div>
<?php
    rewind_posts();
endif;
?>
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.