WordPress.org

Ready to get started?Download WordPress

Forums

Is there a way to display pages as posts (homepage and elsewhere?) (3 posts)

  1. dainismichel
    Member
    Posted 5 years ago #

    Hi,

    Is there a way to display pages as posts on my homepage? Basically, I'd like to be able to see summaries of certain pages on my homepage, and I do not want to create a duplicate post that matches the page. I have some very important content that I want to feature on my homepage (with a thumbnail image), and the content is most suited to be a page (it is not time-dependent), however, I want my visitors to be able to see the content on the front page (not just via my dynamic page drop-down menu).

    A workaround, of course, is to create duplicate content, but then I have two places to edit.

    I thought about creating posts that somehow redirect to the page, but then, what would the summary look like, and would I need to create a duplicate summary anyway, so why not create a duplicate post?

    Duplicate content is just bad, but I want to display my pages as posts on my front page.

    What can I do?

    Best,
    Dainis

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    <?php get_posts('post_type=page'); ?>

    http://codex.wordpress.org/Template_Tags/get_posts

  3. nobby
    Member
    Posted 4 years ago #

    Hey esmi, that replay makes no sense to me at all, that line of code seems to have no effect at all, and i cant seem to follow the relevant of the link can you eleborate a little please?

Topic Closed

This topic has been closed to new replies.

About this Topic