Get data from different table than wp_post….
-
Hello everyone on WordPress.org and Happy New Year!!!!!
I am working around to show up on front end some travel offers like they are posts, I was thinking to create categories and sub-categories for each “identification-offer field”. But in this way I thought it would get a lot messed so it isn’t a clear solution and I thought about using a separate table called like tbl_offers with columns like offer_title, continent, state, city, departure_airport, departure date, duration, offer description.
But the thing I am unsure is this: how I can manage the have_posts() loop to look at that table to put contents in the posts like I am putting the title of the offer at the place of the_title() and the continent, state, city, departure airport, date and duration under the title as like I am picking the_author() and the_time() and the content in the place of the_post() without alterating the philosophy of the theme and wordpress itself….Plus I thought for this way because I guess I could also filter some offers/posts to see for example only offers to America….
Do you have a suggest if there’s a clear way to do that to visualize offers like posts?….
Thanks in advance to all for the suggest and have an happy year 2009 again!!!
Ciao,
Luigi
- The topic ‘Get data from different table than wp_post….’ is closed to new replies.