Results 1 to 1 of 1

Thread: export title and image

  1. #1
    Thread Starter
    Rookie titan's Avatar
    Join Date
    Mar 2012
    Location
    Belgium
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    export title and image

    I try to show the adverts on a other website
    i can have the titles, but no the images.

    Images are in post meta, but have not always the same id as the post.

    PHP Code:
    $Query1 "SELECT post_name, post_title FROM `wp_posts` WHERE `post_type` = 'ad_listing' ORDER BY `wp_posts`.`ID` DESC LIMIT 5";
    $Result1 mysql_db_query($DBname7,$Query1,$Link1);
    while (
    $Row1=mysql_fetch_array($Result1))
    {
    print 
    "<a href='http://domain.com/ads/$Row1[post_name]/' target='_blank'><b>- $Row1[post_title]</b></a><br>\n";

    how can i add the image ?

    thanks for help

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Export Classipress using Database or Export tools
    By TheSyndicate in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: January 10th, 2012, 03:51 AM
  2. Title image number
    By piplo in forum Report ClassiPress Bugs
    Replies: 7
    Last Post: March 17th, 2011, 08:23 AM
  3. Featured Image Title
    By sarge in forum ClassiPress General Discussion
    Replies: 5
    Last Post: June 13th, 2010, 06:05 PM
  4. Featured Image Title
    By sarge in forum Help Using ClassiPress
    Replies: 0
    Last Post: December 31st, 1969, 07:00 PM