Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $catquery = new WP_Query( 'post_type=tablighat & taxonomy=tablighatcat & tablighatcat=wr-gift & posts_per_page=1' );
- while($catquery->have_posts()) : $catquery->the_post(); ?>
- <?php global $wp_query;
- $postid = $wp_query->post->ID; ?>
- <?php if (get_post_meta($id, 'ads-url', true)) { ?>
- <a href="<?= get_post_meta($id, 'ads-url', true); ?>">
- <img src="<?= get_post_meta($id, 'ads-img-url', true); ?>" width="290" height="200" alt="">
- </a>
- <?php } ?>
- <?php endwhile; ?>
- <?php wp_reset_postdata(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement