Results 1 to 7 of 7

Thread: Getting specific ad thumbnail

  1. #1
    Thread Starter
    Rookie bakkerpham's Avatar
    Join Date
    Jan 2012
    Location
    Netherlands
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Getting specific ad thumbnail

    Hello,

    I have a question regarding loading of a thumbnail belonging to a specific ad. I want to create a while loop which displays the 10 newest ads and displays the title + thumbnail. I don't want this to be a widget, just code to paste into page.php for example.

    Is there a way to do this? I tried using the cp_get_image_url_single and cp_get_image_url functions but none worked. Also tried to directly query the database and load the image url but this also failed since the id for the post and image are not the same. Does anyone have a solution?


    Kind regards,

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Rookie bakkerpham's Avatar
    Join Date
    Jan 2012
    Location
    Netherlands
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Thread Starter
    Rookie bakkerpham's Avatar
    Join Date
    Jan 2012
    Location
    Netherlands
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    Thread Starter
    Rookie bakkerpham's Avatar
    Join Date
    Jan 2012
    Location
    Netherlands
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [TUTORIAL] Specific Banners Ads For Specific Categories
    By hugo in forum ClassiPress General Discussion
    Replies: 12
    Last Post: February 5th, 2013, 04:37 PM
  2. Ad links on specific ads, but not on all
    By lausha in forum ClassiPress General Discussion
    Replies: 3
    Last Post: January 19th, 2012, 09:34 PM
  3. Indeed...state specific
    By jamo in forum JobRoller General Discussion
    Replies: 3
    Last Post: November 3rd, 2011, 06:45 AM