an
groups-icon

Custom Shortcodes

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Miguel Rojas
    0 points
    Beginner

    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?

    October 24, 2014 at 2:50 pm
  • Errol Hutchinson
    -2 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    October 25, 2014 at 2:47 am
  • Richard Bonk
    -1 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    October 26, 2014 at 10:30 am
  • Miguel Rojas
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    October 27, 2014 at 3:07 pm

190

Views

3

Replies