Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How can I feed content from one webpage into another?? Re: How can I feed content from one webpage into another??

#111383
Dhanishta
Member

In wordpress prospective:
Pages are just posts, with a post_type of ‘page’ in the database. You can show the content of multiple pages on another page by writing a post query in your pageX template that gets the posts you specify and output them in a Loop.

There are three ways to get post content from the database:

get_posts,
query_posts,
WP_Query.

These links all point to the WordPress Codex. Get_posts and query_posts have an argument available, ‘page_id’, where you can specify the id of the page you’d like to retrieve and display.