How to use a WP Page and pull Posts into that page
-
Hi there,
I’m very new to WP and need some help please. I understand the idea of pages being different to your posts page.
What I need though, is to have a ‘static’ HOME page with content that is entered into that from the backend (as per usual content entry), but I also need three posts from three different categories pulled in from the blog which will serve as news articles.
I have found a wonderful resource on YouTube all about WordPress where the guy talks about using query_posts() and get_posts(). I see what these functions are doing; they are setting up the criteria for the loop to go fetch those specific items.
What I need to do however, is use a normal page, pull the content from the DB and BELOW that, loop through my posts so that I can pull only 1 item from three different categories for my home page.
Can someone tell me how I can go about doing this please?
Many thanks,
James
- The topic ‘How to use a WP Page and pull Posts into that page’ is closed to new replies.