Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //...other codes...
- <?php
- //variabel for defined custom field
- $custom_field_fitur = nl2br(get_post_meta($post->ID,"Fitur",true));
- $custom_field_organiser = get_post_meta($post->ID,"Organiser",true);
- ?>
- </div> //end div...
- <?php
- //create variabel to defined category name...
- $cats = wp_get_post_categories('Handphone');
- //if category Handphone
- if ($cats) : ?>
- <div class="fiture">
- <h3>Fitur</h3>
- <?php
- echo $custom_field_fitur;
- ?>
- </div>
- <div class="organiser">
- <h3>Organizer</h3>
- <?php
- echo $custom_field_organiser;
- ?>
- </div>
- //else..
- <?php else : ?>
- <div class="fiture">
- <h3>Spesifikasi</h3>
- <?php
- echo $custom_field_organiser;
- ?>
- </div>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement