Title: Shortcode not working
Last modified: January 30, 2018

---

# Shortcode not working

 *  Resolved [hiitsdustindavis](https://wordpress.org/support/users/hiitsdustindavis/)
 * (@hiitsdustindavis)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/shortcode-not-working-235/)
 * I am trying to use the Read More plugin ([https://wordpress.org/plugins/expand-maker/#description](https://wordpress.org/plugins/expand-maker/#description))
   in a textarea. The Read More plugin relies on wrapping content to be hidden in
   a shortcode. I’ve tested this in the standard WordPress TinyMCE WYSIG and it 
   works. However when placed in a Custom Field Suite textarea the shortcodes text
   is rendered as is and displays no showing or hiding functionality.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-not-working-235%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [hiitsdustindavis](https://wordpress.org/support/users/hiitsdustindavis/)
 * (@hiitsdustindavis)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/shortcode-not-working-235/#post-9919609)
 * RESOLVED – USE do_shortcode() and with the field name as the argument. Also this
   works textarea and WYSIWYG field types. Not sure about others.
 * When calling the field I used:
    echo do_shortcode( $data[‘_attorney_summary’]);
 * Instead of the normal:
    echo $data[‘_attorney_summary’];
 * Here is an example:
    <?php if ( have_posts() ) : ?>
 *  <?php while ( have_posts() ) : the_post();
 *  $data = CFS()->get( false, get_the_ID(), array( ‘format’ => ‘raw’ ) );
    echo
   do_shortcode( $data[‘_attorney_summary’] );
 *  <?php endwhile; ?>
 * <?php endif; ?>

Viewing 1 replies (of 1 total)

The topic ‘Shortcode not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-field-suite.svg)
 * [Custom Field Suite](https://wordpress.org/plugins/custom-field-suite/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-field-suite/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-field-suite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-field-suite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-field-suite/reviews/)

## Tags

 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [textarea](https://wordpress.org/support/topic-tag/textarea/)

 * 1 reply
 * 1 participant
 * Last reply from: [hiitsdustindavis](https://wordpress.org/support/users/hiitsdustindavis/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/shortcode-not-working-235/#post-9919609)
 * Status: resolved