Skip to content

Instantly share code, notes, and snippets.

@chekle
Created July 6, 2023 06:48
Show Gist options
  • Save chekle/5d7934e2bc9fe559cd53ce0dddc05a57 to your computer and use it in GitHub Desktop.
Save chekle/5d7934e2bc9fe559cd53ce0dddc05a57 to your computer and use it in GitHub Desktop.
WordPress Shortcode Examples
WORDPRESS DO SHORTCODE
<?php echo do_shortcode("[shortcode]"); ?>
SHORTCODE FROM ACF FIELD
<?php echo do_shortcode(get_field('social_stream_shortcode')); ?>
GFORMS
<?php echo do_shortcode("[gravityform id='1' title='false' description='false' ajax='true']"); ?>
[gravityform id="1" title="false" description="false" ajax="true"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment