Parallax page (2 posts)

  1. Chris Demetriad
    Posted 4 years ago #

    I'd like to use a parallax script and build a page with content from different sources.

    So I'll have content from pages like about, contact, services, etc, all of them on the front page.

    What should I use to get the posts content/title/photos, do I have a better option than custom queries?

    I was thinking of query_posts or wp_query but would appreciate an advice on this, please.

    Will I encounter any problems lately, is there anything I should be aware of?

    Thank you.

  2. jevets
    Posted 4 years ago #

    get_posts(), query_posts() and WP_Query all perform pretty much the same task.

    You'll want to avoid query_posts() unless you intend to alter the default query.

    If you just need to get a page, you can use get_page() or get_page_by_title()


Topic Closed

This topic has been closed to new replies.

About this Topic