C9 Variables

C9 Variables

Wordpress plugin

Install on Wordpress

App Details

As a content author, you constantly try to keep the content on your site up-to-date. The challenge increases as many a times the same content is repeated at various places on your site. Add to that the content keeps changing over time making it more difficult to keep your site up-to-date. Here are some examples.

  • Features of a product or service you offer (you may end up repeating these on the product page as well as blog posts)
  • Links with promotion codes that change from time-to-time (again the links may spread across your site)
  • Content promotion (such as, promoting content from development site to production site where you may need to update links to point to the production site)

C9 Variables helps in all these areas and many more. It facilitates authoring reusable content as variables. Then, you can refer to these variables from other content (such as, blog post or page) instead of repeating the content. C9 Variables will automatically show the latest content of variables when the post or page is loaded. If you need to make updates, simply update the variable in one place and the changes will be available automatically when the referring page or post is reloaded.

Here are some examples.

Example#1: Variable for Product Features

Lets say you want to create reusable content for managing your product features that you would like to show at multiple places on your site, such as, the product page, blog posts, etc.

  • Create a variable using C9 Variables, say ProductFeatures, with the following content.
    html
    <ul>
    <li>Create new content.</li>
    <li>Modify content.</li>
    <li>Search content.</li>
    <li>Delete content.</li>
    </ul>
  • Now you can refer to this variable from another post or page using the c9-vars-insert shortcode. For example, here is a blog post snippet referring to the above ProductFeatures variable.
    html
    Welcome to the release of our latest product that offers the following key features.
    [c9-vars-insert name="ProductFeatures"]
    We are quite optimistic that this will help you tremendously in managing your site.
    Notice how you did not have to repeat the entire list of features. Next time you add more to the feature list, you can simply update the ProductFeatures variable and all the content using this variable will get the latest feature list when reloaded.

See Demo.

Example#2: Variable for Managing Promotion Code

Lets say you constantly run promotion on your site and you have links from various pages and posts on your site that should provide the latest promotion code. You want to ensure there are no obsolete promotion links. Here, you will create a variable to store the promotion code and use it from other content on your site. For the purpose of demonstration, lets use the promotion code value as CLOUDNINE.

  • Create a variable, say Promo Code, with content as CLOUDNINE.
  • Refer to this variable wherever you would like to access the promotion code. Example
    html
    <a href='http://example.com/product?coupon=[c9-vars-insert name="Promo Code"]'>Click here</a> to claim your promotion code.
    Next time your promotion code changes, simply update the Promo Code variable and all references will be updated dynamically.

See Demo.

Example#3: Variable for Site

Lets say you run a development site where you author your content first and then promote to production. This site contains links to other pages on your site. When you promote this content to the production site, you want to make sure the links now refer to the production site without having to do a search and replace or other manual and error prone tasks. C9 Variables makes this task simple.

  • Create a variable for site, say site, with value as example-dev.local in your development site.
  • Create the same variable site with value as example.com in your production site.
  • Now, you can author links in your content hassle free using the site variable. Example
    html
    <a href='http://[c9-vars-insert name="site"]/products/MyCoolProduct'>Click here</a> to visit the MyCoolProduct.
    <a href='http://[c9-vars-insert name="site"]'>/blogs</a>
    When this content is promoted to production, the links will be dynamically updated to use the production site value.

See Demo.

Example#4: Nested Variables

Yes, variables can be nested! That is, one variable can refer to another variable. In fact, a variable’s content can use shortcodes from other plugins as well. Here’s an example.

  • Create a variable, say Nested Content, that refers to the above ProductFeatures variable with the following content.
    html
    The following content is from the <strong>ProductFeatures</strong> variable.
    [c9-vars-insert name=’productfeatures’]
  • Now, wherever Nested Content variable is used, it will automatically substitute the content with the latest value for ProductFeatures as well.

See Demo.

Example#5: Variable for Magic Button!

This is a common case of content management wherein the content is being actively developed in the development site for a particular release. The content is also published to production, but not made visible until the release date. This is accomplished by using a variable to act as a magic button!

  • Create a variable for magic button, say Magic Button, that uses the HTML div tag and display attribute. You can also use a version based name, such as, Magic Button V1.0. To keep the content visible on the development site, set Magic Button variable value to the following.
    html
    <div style="display: block;">
  • To keep the content hidden on the production site, set Magic Button variable value to the following.
    html
    <div style="display: none;">
  • Author the content. Following is a sample content for demonstration purpose.
    html
    [c9-vars-insert name=’magic-button’]
    This content shows the features of the latest release.
    </div>
  • Push content to production without a worry that it’ll be available to the users before the release date.
  • On the release date, simply switch the Magic Button variable value in production to make the content visible.

See Demo.

Example#6: Variable for Content Promotion

This is another common case in the documentation world and hence worth calling out. Lets say you are preparing documentation for the next release of your product and you are working in a draft space that’s only accessible to select customers and employees. You want the links to point to the draft space. Once the product is released, you want to the links to dynamically point to the published space.

  • Create a variable for space, say space, with value as draft.
  • Have your referring pages use the above variable when referring to the links. For example
    html
    Restricted page
    <a href='http://example.com/documentation?space=[c9-vars-insert name="space"]'>Documentation</a>
    <a href='http://example.com/documentation/myproduct/space=[c9-vars-insert name="space"]'>My Product Documentation</a>
  • Now, the select people with access to the above page will see the links that are pointing to the draft space.
  • When you are ready for the release, you can simply update the space to published and make the above restricted page publicly accessible. And, all the content will be publicly available. Simple!

Keep building awesome reusable content!

Features

Basic Plugin Features

C9 Variables is fully functional and it adds capabilities to both the WordPress Admin as well as the public interface.

  • WordPress Admin
    • Add/modify/delete up to 10 Variables
    • Support for WordPress built-in roles: Super Admin, Administrator, Editor, Author, Contributor, Subscriber (see details)
    • Page/Post Editor Enhancements
      • Integrated Editor button to lookup and insert a Variable
      • Organize Variable list by title
      • Use selected Variable in the post/page via a convenient shortcode
    • Settings
      • Debug Mode: On/Off (default: Off)
      • Anonymous Usage Tracking: On/Off (default: Off)
  • WordPress Public
    • Replace Variable value when showing the post/page

Pro Plugin Features

C9 Variables Pro provides following features on top of the basic plugin features.

  • WordPress Admin
    • Unlimited Variables
    • Mark favorite Variables
    • Page/Post Editor Enhancements
      • Variable lookup supports searching by favorites
      • Variable lookup supports sorting results by Last Used or Title
      • Variable lookup supports pagination and configurable page size
    • Settings
      • Default Variable Sort Order: Title, Last Used (default: Title)
      • Number of Results per Page: 10, 25, 50 (default: 10)

Pricing

Starting from $0 per month.

Check Out the RSS Feed Widget

By Common Ninja

RSS FeedTry For Free!

App Info

Rating

Reviewers

1 reviews

Tags

content management
productivity
reusable content
tools

Developed By

nitinvp

Quick & Easy

Find the Best Wordpress plugins for you

Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!

Testimonial

Testimonial plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Forms

Forms plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Comments

Comments plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Maps

Maps plugins for Wordpress

Security

Security plugins for Wordpress

Translation

Translation plugins for Wordpress

Ads

Ads plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Chat

Chat plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Membership

Membership plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Contact

Contact plugins for Wordpress

Comments

Comments plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Common Ninja Apps

Some of the best Common Ninja plugins for Wordpress

Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

RSS Feed for Wordpress logo

RSS Feed

Show fresh content from any source with an RSS feed that keeps your site updated, improves navigation, and boosts user engagement.

Announcements for Wordpress logo

Announcements

Add announcements to your site to share important updates, keep visitors informed, and guide them toward actions that support engagement and conversions.

Quiz Maker for Wordpress logo

Quiz Maker

Create interactive quizzes with a quiz maker that lets you build custom questions, collect responses, and increase engagement with easy site integration.

Video Poll for Wordpress logo

Video Poll

Create interactive video polls that use engaging clips to boost participation, gather insights, and help visitors vote in a more dynamic way.

Diagrams for Wordpress logo

Diagrams

Create interactive diagrams with a diagrams widget that lets you build and customize flow charts, improve clarity, and help visitors understand complex ideas easily.

Age Verification for Wordpress logo

Age Verification

Verify visitor age with an age verification popup that helps you meet legal requirements, protect your business, and ensure responsible access.

Blogger Feed for Wordpress logo

Blogger Feed

Show Blogger posts automatically with a Blogger feed that keeps your content fresh, improves navigation, and helps visitors discover more of your work.

Flash Cards for Wordpress logo

Flash Cards

Create interactive flash cards that present questions and answers in a clear, customizable format to support learning, training, and user engagement.

Google Maps for Wordpress logo

Google Maps

Show business locations clearly with a Google Maps widget that displays multiple points, detailed info, and customizable styles to help visitors find you easily.

Sticky Video for Wordpress logo

Sticky Video

Use a sticky video that stays visible while users scroll to keep content in view, increase watch time, and boost engagement.

Progress Circles for Wordpress logo

Progress Circles

Show progress with animated progress circles that visualize goals, display achievements, and keep visitors engaged.

YouTube Slider for Wordpress logo

YouTube Slider

Show YouTube videos with a YouTube slider that displays clips in a smooth, customizable layout to boost engagement.

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms