How to get ad-category and images of a post?
I have to get post ID, Permalink, Title, ad-category and images of ad-listings.
ID is ok:
PHP Code:
<?php echo get_post_meta($post->ID, 'cp_sys_ad_conf_id', true); ?>
Permalink is ok:
PHP Code:
<?php echo get_permalink($post->ID); ?>
Title is ok:
PHP Code:
<?php echo get_the_title($post->ID); ?>
However I could not find function to get ad-category and images attached.
Please note, I have to retrieve just the image URL (
http://domain.com/wp-content/uploads...)
Could you help?