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,