Title: Get inline css for specific post
Last modified: October 25, 2016

---

# Get inline css for specific post

 *  [LinusOnTheLine](https://wordpress.org/support/users/linusontheline/)
 * (@linusontheline)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/get-inline-css-for-specific-post/)
 * I’ve asked the same question [here](https://siteorigin.com/thread/get-all-css-for-a-post/),
   but i’ll give it a go here as well.
 * I will send the post data over the REST API and i want to attach the needed css
   for the post. The global variable `$siteorigin_panels_inline_css;` gives me the
   needed css for the containers, but i will also need the widget css.
 * A bad thing about using this global variable is that when i’m listing posts with
   the rest API each post get CSS for all other posts in the list.
    So, what i like
   to achieve is something more like `get_all_inline_css_for_post($post_id);` Any
   suggestions?

The topic ‘Get inline css for specific post’ is closed to new replies.

 * ![](https://ps.w.org/siteorigin-panels/assets/icon.svg?rev=2556869)
 * [Page Builder by SiteOrigin](https://wordpress.org/plugins/siteorigin-panels/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/siteorigin-panels/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/siteorigin-panels/)
 * [Active Topics](https://wordpress.org/support/plugin/siteorigin-panels/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/siteorigin-panels/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/siteorigin-panels/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [LinusOnTheLine](https://wordpress.org/support/users/linusontheline/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/get-inline-css-for-specific-post/)
 * Status: not resolved