WordPress.org

Ready to get started?Download WordPress

Forums

get page as get post (3 posts)

  1. remcosieb
    Member
    Posted 1 year ago #

    Hi,

    On my frontpage i want to show the thumbnail of a page like i normally do for posts. Only when i put <?php get_page( $page_id ) ?> then i get the content of the current page.. very annoying. Anyone has a idea?

  2. codingpet
    Member
    Posted 1 year ago #

    get_page is to get the content and other values of current page. If you want to show thumbnail, try http://codex.wordpress.org/Function_Reference/the_post_thumbnail or http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail

  3. remcosieb
    Member
    Posted 1 year ago #

    thanks. But this still wont work. It just doesnt show anything. I want to get a thumbail from a specific post on my static frontpage.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.