Title: Shortcodes   layout options
Last modified: August 31, 2016

---

# Shortcodes layout options

 *  Resolved [vincepettit](https://wordpress.org/support/users/vincepettit/)
 * (@vincepettit)
 * [10 years ago](https://wordpress.org/support/topic/shortcodes-layout-options/)
 * We use the Tablepress plugin to display results on our web pages but when the
   articles are pushed through for Apple publishing they just show the shortcode
   rather than the table.
 * Additionally would it be possible to add further layout options such as being
   able to put the headline below the feature image and also a preview of the layout
   would be extremely useful rather than having to submit it before seeing how it
   looks.
 * [https://wordpress.org/plugins/publish-to-apple-news/](https://wordpress.org/plugins/publish-to-apple-news/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Bradford Campeau-Laurion](https://wordpress.org/support/users/potatomaster/)
 * (@potatomaster)
 * [10 years ago](https://wordpress.org/support/topic/shortcodes-layout-options/#post-7230520)
 * The headline can be moved below the featured image using the “Component Order”
   setting.
 * Unfortunately support for third party plugins is outside the scope of what we
   can offer. You should work with the plugin developer if you’d like to see that
   supported. If you want to simply remove the shortcode, I suggest using the filter
   hook `apple_news_exporter_content_pre`:
 * [https://github.com/alleyinteractive/apple-news/blob/master/admin/apple-actions/index/class-export.php#L103](https://github.com/alleyinteractive/apple-news/blob/master/admin/apple-actions/index/class-export.php#L103)
 * [https://codex.wordpress.org/Plugin_API/Filter_Reference](https://codex.wordpress.org/Plugin_API/Filter_Reference)
 *  Thread Starter [vincepettit](https://wordpress.org/support/users/vincepettit/)
 * (@vincepettit)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/shortcodes-layout-options/#post-7230630)
 * Hi Bradford,
 * I’ve been asked by the Tablepress author this question about your plugin:
 * > My assumption here is that Shortcodes are not evaluated by that plugin. Do 
   > you know, if it’s running in the “front-end” context or in the “admin area”
   > context?
 *  Plugin Author [Bradford Campeau-Laurion](https://wordpress.org/support/users/potatomaster/)
 * (@potatomaster)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/shortcodes-layout-options/#post-7230632)
 * Admin context.
 *  Thread Starter [vincepettit](https://wordpress.org/support/users/vincepettit/)
 * (@vincepettit)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/shortcodes-layout-options/#post-7230644)
 * Ok… so it looks like it is tables all together which are not being parsed. We
   submitted an article that included a standard HTML based results table in it 
   and this hasn’t gone through to apple.
 *  Plugin Author [Bradford Campeau-Laurion](https://wordpress.org/support/users/potatomaster/)
 * (@potatomaster)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/shortcodes-layout-options/#post-7230645)
 * There really isn’t a representation of tables in Apple News. We’ll look into 
   this a bit further:
 * [https://github.com/alleyinteractive/apple-news/issues/153](https://github.com/alleyinteractive/apple-news/issues/153)
 *  Thread Starter [vincepettit](https://wordpress.org/support/users/vincepettit/)
 * (@vincepettit)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/shortcodes-layout-options/#post-7230647)
 * Thanks
 *  [blue ant](https://wordpress.org/support/users/assafisaac/)
 * (@assafisaac)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/shortcodes-layout-options/#post-7230670)
 * How would I use the filter? Here what I tried with no luck:
 *     ```
       function apple_news_videos( $content, $post_id ){
       	$content = strip_shortcodes( $post->post_content );
       	return $content;
       }
       add_filter( 'apple_news_exporter_content_pre', 'apple_news_videos', 10, 2 );
       ```
   
 * The JSON file doesn’t return any content:
 * `{"version":"1.1","identifier":"post-457669","language":"en","title":"Oshawa's
   Mike Star was a local music hero","documentStyle":{"backgroundColor":"#FFFFFF"},"
   layout":{"columns":7,"width":1024,"margin":100,"gutter":20},"components":[{"role":"
   container","layout":"headerContainerLayout","style":{"fill":{"type":"image","
   URL":"bundle:\/\/Mike-Star.png","fillMode":"cover"}},"behavior":{"type":"background_parallax"}},{"
   role":"title","text":"Oshawa's Mike Star was a local music hero","textStyle":"
   default-title"},{"role":"byline","text":"by Admin | Oct 6, 2015 | 2:09 PM","textStyle":"
   default-byline","layout":"byline-layout"}],"componentTextStyles":{"default-title":{"
   fontName":"AvenirNext-Bold","fontSize":48,"lineHeight":52,"textColor":"#000000","
   textAlignment":"left"},"default-byline":{"textAlignment":"left","fontName":"AvenirNext-
   Medium","fontSize":17,"textColor":"#53585f"}},"componentLayouts":{"headerContainerLayout":{"
   columnStart":0,"columnSpan":7,"ignoreDocumentMargin":true,"minimumHeight":"50vh","
   margin":{"top":0,"bottom":25}},"byline-layout":{"columnStart":0,"columnSpan":
   7,"margin":{"top":10,"bottom":10}}},"metadata":{"excerpt":"Musicians mourn the
   beloved record store, venue, and label owner.","thumbnailURL":"bundle:\/\/Mike-
   Star.png","dateCreated":"2015-10-06T14:09:02-04:00","dateModified":"2016-05-02T20:
   36:52-04:00","datePublished":"2015-10-06T14:09:02-04:00","canonicalURL":"http:\/\/
   aux.dev\/2015\/10\/06\/oshawas-mike-star-was-a-local-music-hero\/","generatorIdentifier":"
   publish-to-apple-news","generatorName":"Publish to Apple News","generatorVersion":"
   1.0.8"},"advertisingSettings":{"frequency":1,"layout":{"margin":{"top":15,"bottom":
   15}}}}`
 *  Plugin Author [Bradford Campeau-Laurion](https://wordpress.org/support/users/potatomaster/)
 * (@potatomaster)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/shortcodes-layout-options/#post-7230671)
 * `$post->post_content` doesn’t exist in that context, so you’re returning an empty
   string. It should be `strip_shortcodes( $content )`.
 *  [blue ant](https://wordpress.org/support/users/assafisaac/)
 * (@assafisaac)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/shortcodes-layout-options/#post-7230672)
 * Thanks! That worked, but it didn’t strip the shortcode:
 * `{"version":"1.1","identifier":"post-457669","language":"en","title":"Oshawa's
   Mike Star was a local music hero","documentStyle":{"backgroundColor":"#FFFFFF"},"
   layout":{"columns":7,"width":1024,"margin":100,"gutter":20},"components":[{"role":"
   container","layout":"headerContainerLayout","style":{"fill":{"type":"image","
   URL":"bundle:\/\/Mike-Star.png","fillMode":"cover"}},"behavior":{"type":"background_parallax"}},{"
   role":"title","text":"Oshawa's Mike Star was a local music hero","textStyle":"
   default-title"},{"role":"byline","text":"by Admin | Oct 6, 2015 | 2:09 PM","textStyle":"
   default-byline","layout":"byline-layout"},{"role":"body","text":"Ontario musicians
   and music fans are in mourning with the passing of Mike Shulga a.k.a. [Mike Star](
   http:\/\/www.thestar.com\/news\/insight\/2015\/10\/04\/mike-star-was-a-godfather-
   of-canadas-indiepunk-scene.html). He died suddenly on September 11 while vacationing
   in Cuba at age 64.\n\nStarting in 1974, Shulga opened Oshawa\u2019s vinyl-focused
   Star Records shop (later adding locations in Hamilton, St. Catherines, and Scarborough),
   hosted live music with his Star Club series (including appearances from Charlie
   Pickett and the Eggs, The Fleshtones, and Shadowy Men on a Shadowy Planet), and
   launched the Star Records label (with releases from The Forgotten Rebels, The
   Cynics, and Dr. Feelgood). On a local level, he offered support to Oshawa bands
   such as The Purple Toads and Durango 95 (sharing their name with a Ramones song,
   who also made an appearance at the shop). Watch Durango 95 live at the Star Club
   below:\n\n[youtube id=\u201dV1ZBUcQ-g4Y\u201d]\n\n\u201cStar Records was really
   an extension of Mike himself,\u201d says drummer McKeever of Toronto\u2019s [
   Pink Wine](http:\/\/www.aux.tv\/2014\/06\/premiere-listen-to-pink-wine-and-outtacontrollers-
   split-cassette-outtawine\/), who spent his formative years in Oshawa. \u201cI
   first came upon Star when I was nine years old. My earliest memory is seeing 
   this wall display of Japanese imports from all these bands my friends and I loved,
   but we had never seen these albums before. The words \u2018import\u2019, \u2018picture
   disc\u2019, \u2018rare live\u2019, were hand written in blue crayon just below
   the price sticker on the sleeve of these mysterious releases. Records from unknown
   garage bands like Thee Milkshakes were just blasting. We thought, \u2018Who created
   this place?'\u201d\n\n\u201cI was amazed anyone could start a label,\u201d he
   continues. \u201cThe first Star Records product I bought was The Forgotten Rebels\
   u2019 _In Love with the System_. Mike was somewhat reluctant to sell it to me.
   Oh man, was that album a hit at \u2018Bring a Record to School Day\u2019 in grade
   5. My teacher\u2019s face was like, \u2018Wha!! This is the album I get high 
   to with my friends.\u2019 That inspired me to make a few cassette copies of my\
   u2018band\u2019 rehearsing and hand them out at school; photocopied inserts and
   all.\u201d\n\n\u201cMike also promoted hall shows billed as The Star Club,\u201d
   McKeever concludes. \u201cThose were my introduction to live local gigs and they
   were absolutely wild. The Cynics, Chesterfield Kings, and Barracudas all played
   there. People would rip the hall to sawdust. I thought that was normal. Needless
   to say very little has lived up to those shows. Most rock & roll musicians I 
   know wanted to get out of Oshawa and move to big cities to play music. Mike prepared
   us for that.\u201d\n\nA loving piece from [_The Star_](http:\/\/www.thestar.com\/
   news\/insight\/2015\/10\/04\/mike-star-was-a-godfather-of-canadas-indiepunk-scene.
   html) includes other notable names such as Craig Laskey of Toronto\u2019s Horseshoe
   Tavern, Brendan Canning of Broken Social Scene, and Simon Oates of PANIC sharing
   their thoughts on Star\u2019s lasting legacy. Storied London, ON DJ WhatWave 
   Dave broadcast a [tribute show](http:\/\/chrwradio.ca\/content\/radio-what-wave-
   playlist-september-242015-mike-star-tribute) featuring only Star Records releases
   or live recordings from the Star Club. Last year, Blue Rodeo and videographer
   Chris Mills included some melancholy shots of Shulga behind the counter in a 
   short film. See the shop at 5:13 in the video below:\n\n[youtube id=\u201dRbezbrC6abo\
   u201d]\n\nIn a private ceremony for family and friends, Shulga was laid to rest
   with a dozen roses in Star Records\u2019 trademark yellow. Songs at the funeral
   included The Clash\u2019s \u201cKnow Your Rights\u201d and The Forgotten Rebels
   classic \u201cThis Ain\u2019t Hollywood.\u201d A memorial tribute concert is 
   now in the planning stages and will be announced in the coming months.\n\n[vimeo
   id=\u201d164225355\u2033]","format":"markdown","textStyle":"default-body","layout":"
   body-layout"}],"componentTextStyles":{"default-body":{"textAlignment":"left","
   fontName":"AvenirNext-Regular","fontSize":18,"lineHeight":24,"textColor":"#000000","
   linkStyle":{"textColor":"#428bca"}},"default-title":{"fontName":"AvenirNext-Bold","
   fontSize":48,"lineHeight":52,"textColor":"#000000","textAlignment":"left"},"default-
   byline":{"textAlignment":"left","fontName":"AvenirNext-Medium","fontSize":17,"
   textColor":"#53585f"}},"componentLayouts":{"body-layout":{"columnStart":0,"columnSpan":
   5,"margin":{"top":25,"bottom":25}},"headerContainerLayout":{"columnStart":0,"
   columnSpan":7,"ignoreDocumentMargin":true,"minimumHeight":"50vh","margin":{"top":
   0,"bottom":25}},"byline-layout":{"columnStart":0,"columnSpan":7,"margin":{"top":
   10,"bottom":10}}},"metadata":{"excerpt":"Musicians mourn the beloved record store,
   venue, and label owner.","thumbnailURL":"bundle:\/\/Mike-Star.png","dateCreated":"
   2015-10-06T14:09:02-04:00","dateModified":"2016-05-02T20:48:41-04:00","datePublished":"
   2015-10-06T14:09:02-04:00","canonicalURL":"http:\/\/aux.dev\/2015\/10\/06\/oshawas-
   mike-star-was-a-local-music-hero\/","generatorIdentifier":"publish-to-apple-news","
   generatorName":"Publish to Apple News","generatorVersion":"1.0.8"},"advertisingSettings":{"
   frequency":1,"layout":{"margin":{"top":15,"bottom":15}}}}`

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Shortcodes layout options’ is closed to new replies.

 * ![](https://ps.w.org/publish-to-apple-news/assets/icon-256x256.png?rev=3017580)
 * [Publish To Apple News](https://wordpress.org/plugins/publish-to-apple-news/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/publish-to-apple-news/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/publish-to-apple-news/)
 * [Active Topics](https://wordpress.org/support/plugin/publish-to-apple-news/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/publish-to-apple-news/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/publish-to-apple-news/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [blue ant](https://wordpress.org/support/users/assafisaac/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/shortcodes-layout-options/#post-7230672)
 * Status: resolved