I’m starting to create my custom shortcodes using custom fields: [code title=””]function garage(){ echo get_post_meta( get_the_ID(), ‘keyid’, true); } add_shortcode(‘Garage’, ‘garage’);[/code]
the shortcode works but when I add the shortcode in the Listing page layout, it appears on above the block div instead of inside it.
Anybody knows what might be wrong?
This reply is for PremiumPress customers only.
190
Views
3
Replies
Copyright © 2010-2024 PremiumPress Limited.
I’m starting to create my custom shortcodes using custom fields:
[code title=””]function garage(){
echo get_post_meta( get_the_ID(), ‘keyid’, true);
}
add_shortcode(‘Garage’, ‘garage’);[/code]
the shortcode works but when I add the shortcode in the Listing page layout, it appears on above the block div instead of inside it.
Anybody knows what might be wrong?
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 Now