WordPress Plugin: CodingCereal Embed Demo Script

Finally, I was able to finish developing a simple plugin for codingcereal.com.

CodingCereal Embed Demo Script is a wordpress plugin that enables the user to:

  • Insert javascript, css and meta script in the header area for their post.
  • Insert custom html scripts within their post using the [cc_embed_script]shortcode
  • Insert javascript codes in the body of the page

Limitations

  • Displaying of the demo codes are only shown on single post pages. Demo scripts for posts with the inserted shortcode that are displayed in other pages such as the home page, category and tags won’t be shown.
  • Doesn’t support server side scripting like PHP, only client-side scripts like CSS and Javascript

This plugin was primarily developed to make the embedding of sample demos for codingcereal.com easier. In the future, external demo pages for the site will be removed and we’ll just enjoy a single page entry 🙂

Sample Usage Embedded Script:

I used the jQuery UI Accordion to demonstrate the functionality of this plugin.

Sample Demo

Section 1

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.

Section 2

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna.

Section 3

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.

  • List item one
  • List item two
  • List item three

Section 4

Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est.

Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

Download the plugin

Right click and save as: CodingCereal Embed Demo Script

Thanks for reading.

Recent Posts