In Single show Custom fields in a category
-
I’m designing a hotel directory website. I want to show custom field tags for posts in category 3 (as well as the_content). To my mind it should go:
<?php if (is_category(3)) {?>
- Address: <?php echo c2c_get_custom(‘Address’); ?>
- Bookings: <?php echo c2c_get_custom(‘Telephone’); ?>
- Price Category: <?php echo c2c_get_custom(‘Price Category’); ?>
- Nearest Beach: <?php echo c2c_get_custom(‘Nearest Beach’); ?>
<?php the_content(‘<p class=”serif”>Read the rest of this entry »’); ?>
<?php } ?><?php else (is_category()) {?>
<?php the_content(‘<p class=”serif”>Read the rest of this entry »’); ?>
<?php } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘In Single show Custom fields in a category’ is closed to new replies.