PHP code instaid of shortcode
-
Hi! First of all, congratulations for this awesome plugin!
I have a small problem… when I try to put the php code instaid the shortcode in my theme, it fails and show up nothing. This is the code i used:
<?php echo do_shortcode('[mycred_sell_this price="10" button_label="Desbloquear" expire="24"]'.$enlaces=get_post_meta($post->ID, 'wpcf_enlaces', true).'[/mycred_sell_this]'); ?>
I read wordpress codex, but I think is a problem calling a custom field. Any solution?
Thank you ??
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP code instaid of shortcode’ is closed to new replies.