Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
Version 9
Chue Vann
0 points
Beginner
Hello,
The current Print Layout to print printable coupon is too simple and doesn’t include all of the coupon’s details.
So I am trying to customize it directly on the class_white_label_themes.php
I am using below code to get custom fields to show up on the print layout page, and it’s working good.
<?php if ( get_post_meta($post->ID, ‘my_custom_field_here’, true) ) echo do_shortcode(get_post_meta($post->ID, ‘my_custom_field_here’, $single = true)); ?>
But the problem is….
It doesn’t work when I am trying to get custom taxonomy fields to show up on print layout page, it shows nothing, it is blank.
Hello,
The current Print Layout to print printable coupon is too simple and doesn’t include all of the coupon’s details.
So I am trying to customize it directly on the class_white_label_themes.php
I am using below code to get custom fields to show up on the print layout page, and it’s working good.
<?php if ( get_post_meta($post->ID, ‘my_custom_field_here’, true) ) echo do_shortcode(get_post_meta($post->ID, ‘my_custom_field_here’, $single = true)); ?>
But the problem is….
It doesn’t work when I am trying to get custom taxonomy fields to show up on print layout page, it shows nothing, it is blank.
Here is what I use….
<?php if ( get_post_meta($post->ID, ‘store’, true) ) echo do_shortcode(get_post_meta($post->ID, ‘store’, $single = true)); ?>
It suppose to show store name, but it doesn’t show anything.
<?php if ( get_post_meta($post->ID, ‘[CTAX key=store]’, true) ) echo do_shortcode(get_post_meta($post->ID, ‘[CTAX key=store]’, $single = true)); ?>
It doesn’t work.
<?php if ( get_post_meta($post->ID, ‘[CTAX key=custom_taxonomy_here]’, true) ) echo do_shortcode(get_post_meta($post->ID, ‘[custom_taxonomy_here]’, $single = true)); ?>
It doesn’t work.
<?php if ( get_post_meta($post->ID, ‘custom_taxonomy_here’, true) ) echo do_shortcode(get_post_meta($post->ID, ‘custom_taxonomy_here’, $single = true)); ?>
It doesn’t work.
I don’t know what to do, please help.
Thanks in advance.
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now