Custom post problem
-
Hi all,
<?php $loop = new WP_Query("p=272&post_type=HoverImage&post_status=publish"); echo $loop->the_post(); <center><?php echo '<img src="'.get_field('normal_image',get_the_ID()).'"/>'; ?></center> <?php if(hover){ //echo '<img src="'.get_field('hover_image',get_the_ID()).'"/>'; } ?>
this is my code i am viewing the image from custom field , now i want another image while hover the image.
inside “if()” what condition should be put?? if any help provide it’ll helpful for me.
Thanks sallu.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom post problem’ is closed to new replies.