how to show app badge in theme with help of acf.
-
I understand it’s working.
Simple for admins, advanced for user.
but I want little advance editing.
ok so I can show badge into content area with the shortcode like
[AppBox * Store Name * screenshots * id *].
but I want to show it in a specific part of a theme in my child theme.
it can be done by
<?php echo do_shortcode(“[AppBox * Store Name * screenshots * id *]”); ?>.
but I am want add *id* from advanced custom field.
means I don’t want to add badge form visual editor but from custom field.
I created ACF/custom field ‘android’ for android app Id.I tried something like this.
<?php echo do_shortcode(“[AppBox playstore screenshots <?php the_field(‘android’); ?>]”); ?>and
<?php echo do_shortcode(“[AppBox playstore screenshots [acf field=”{$field_name}”]]”); ?>
but seems It’s not working.
any clue or trick to get work done.
- The topic ‘how to show app badge in theme with help of acf.’ is closed to new replies.