Title: responsive
Last modified: September 4, 2017

---

# responsive

 *  [modiphier](https://wordpress.org/support/users/modiphier/)
 * (@modiphier)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/responsive-332/)
 * Hello,
 * This plugin works perfect and I had no problem adding a field to acf group and
   displaying a table on the front end. My question is, is there anyway to get the
   output table code to use the same output as using the shortcode of [table id=
   1 responsive=scroll /] and use the features or format of the responsive add-on.
 * [https://tablepress.org/extensions/responsive-tables/](https://tablepress.org/extensions/responsive-tables/)
 * Thanks,
    Paul

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [pwtyler](https://wordpress.org/support/users/pwtyler/)
 * (@pwtyler)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/responsive-332/#post-9587474)
 * Hi Paul,
 * Sorry for the (very) belated response here, I only just saw the notification 
   here on wordpress.org.
 * If you are still having trouble: the simplest answer is to use “do_shortcode()”.
   `
   echo do_shortcode( '[table id="'.$tablepress_id.'" responsive=scroll]' );` should
   do the trick.
 * There are other (smarter/faster) ways to avoid do_shortcode and use tablepress_print_table(),
   but I’m not sure how straightforward that is. It could be something as simple
   as
 *     ```
       $args = array(
         'id' => get_field( 'your_field_here'),
         'responsive => 'scroll'
       );
       if ( function_exists( 'tablepress_print_table' ) ) {
         tablepress_print_table( $args );
       }
       ```
   
 * But I have not tested the code above. I am, however reasonably certain do_shortcode()
   will work fine. Let me know if you are still having trouble and I can play around
   with it a little more.
 * Best,
    Phil

Viewing 1 replies (of 1 total)

The topic ‘responsive’ is closed to new replies.

 * ![](https://ps.w.org/acf-tablepress/assets/icon-256x256.png?rev=1153184)
 * [ACF: TablePress](https://wordpress.org/plugins/acf-tablepress/)
 * [Support Threads](https://wordpress.org/support/plugin/acf-tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-tablepress/reviews/)

## Tags

 * [Responsive Tables](https://wordpress.org/support/topic-tag/responsive-tables/)

 * 1 reply
 * 2 participants
 * Last reply from: [pwtyler](https://wordpress.org/support/users/pwtyler/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/responsive-332/#post-9587474)
 * Status: not resolved