Reviews, Tutorials

How to Generator Dynamic Content With WordPress Cosmos Plugin

Marketing is becoming more and more challenging nowadays. Landing pages or dynamic pages are in high demand. For marketers, it becomes a tough task to create new landing pages every month and try out new combinations.

Cosmos plugin for WordPress can be the key that your business is missing. Handling dynamic requests is now a need for websites, especially WooCommerce powered ones. Cosmos plugin is the only WordPress plugin that has the capability to handle the incoming URL parameters/UTM codes. By accepting the incoming values, the plugin dynamically generates the content from your website. And, this can quickly open doors of opportunities for the eCommerce websites, blogs and other forms of the content publishing firm.

How the Cosmos Plugins Make It Happen?

Cosmos plugin uses its popular Cosmos infinite content engine for WordPress. The engine works behind the scenes, capturing the incoming values and rendering content from your blog. This way, you can easily target the audience with appropriate content and also make sure that they don’t bounce off because of the wrong URL.

Also, it becomes easy to utilize parameters from 3rd party APPs and services and to provide highly targeted content for better returns.

Behind the scenes, Cosmos plugin works as follows:

  1. Cosmos scans for incoming URL parameters/ UTM codes and stores them for further usage. For example, the website receives URL from Google Adwords campaign.
  2. Once, the parameters are received, the cosmos plugin looks for a landing page or a page/post template and fetches the appropriate content from the website/blog.
  3. If you load the page without any parameters, the page/post will act dynamically, improving your visibility and uniqueness of the content.
  4. The rendering can also be done using the shortcodes.

How To Get Started With Cosmic Plugin

With the introduction done, now it is time to go forward and make it work. This tutorial is aimed for complete beginners. I am going to use my demo blog for demonstration purposes.

Installing The Plugin

Installing the plugin is easy and intuitive. Once you have purchased the plugin or downloaded the trial version of the plugin, go to “Plugins -> Add new“.

Upload new plugin and click on install. Once installed, activate the plugin to use it. Once activated, your dashboard sidebar will be populated with a new menu item, “Cosmos Infinite Content Engine“.

Preparing For The First Steps

To make the plugin useful, you first need to specify some URL parameters. To do so, click on the “Cosmos Infinite Content Engine“. You will get into the plugin settings. There are four main tabs to look out for. They are Main Settings, Advanced Settings, Plugin License, and Documentation and support.

Install Cosmos Plugin

Our main work is in the main settings that contain the option to handle the URL parameters from 3rd party apps. It is super useful for 3rd party apps such as Google Adwords. Moreover, you can create an entirely random content for your visitor. This can reduce bounce rate quickly.

Setting Up URL Parameters

The next step is to set up the URL parameters. There is no limit on the number of parameters that can be added. The operation supported by the parameter are “IN” and “NOT IN“. The relation can be set either “OR” or “AND“.

For now, we will stick to just URL parameter. The parameter is set to “keyword” and the operator is set to “IN“. The relation is set to “OR“. It would look like the following.

Setting URL Parameter

Optional Content Render Settings.

On the same tab, you will get the option to add content render settings. Currently, the plugin only offers 7 content type. The list can be found here.

In this tutorial, we will be using WordPress post content type. The shortcode for WordPress content type is “cosmos_post“. In this section, you can either use the shortcode or a registered template. For example, you want to use registered template for a blog post if you want to display random or targeted blog posts.

For this tutorial, we will try to publish a page that retrieves random posts from the database. For this to happen, we need to use “cosmost_post” as registered shortcode and “id” as shortcode ID parameter.

Content Reader Settigns

Now, save all the settings by pressing “Save Settings” button on the top right.

Setting Up The Random Blog Generation Page

With shortcode and URL parameters setup done, it is now a right time to utilize the settings to create a random blog post generation page. Whenever any visitor loads the page, a random blog post from the published posts will be shown to him/her.

This technique can be used to improve user time on the website and also increase pageviews per visitor. The more time the visitor stays, the higher chances that he/she will convert to a customer.

Go to Page -> Create the new page.

On the top side of the page editor, you can see a “Cosmos infinite content” button for easy shortcode creation purposes.


Now, it is time to start customizing the page.

The best possible way for customizing the page is to use a page builder. This way you can quickly add a text area and customize each part of the page accordingly. For the tutorial, I will only use one shortcode.

Open up the Cosmos Infinite Content. The open pop-up window will look as follows.


Let’s go through the options one by one.

  • Choose Content TypeThe options let you choose the different content type. It can be a post, attachments, page, clients, and services.
  • Display Full Content or ExcerptYou can choose to display full content or only the excerpt.
  • Render ByYou can choose to render the page using shortcode or template.
  • Select ShortcodeThe option becomes available once the render by option is set to the shortcode. Click the drop down menu to choose from the list of shortcodes available. In our case, it will be “cosmos_post”.
  • Set QuantityQuantity can be set from 1 to 8.
  • Set Orderby ParameterIf more than one quantity is fetched, you can set the order by to five different parameters.
  • True Link to PostSet it true for creating a true link to the post.
  • Include Featured ImageInclude feature image if available.

For our dynamic blog post page, we need to choose the following settings:

  • Content Type: Post
  • Display Full Content or Excerpt: Full Content
  • Render By: Shortcode
  • Select Shortcode: cosmos_post
  • Set Quantity: 1
  • Set Orderby parameter: Random
  • Title Links to Post: True

Now, you need to click on “Build Shortcode” and then press “Add Shortcode to Page“.


Now, save the page and publish it! You now have a random page that fetches dynamic blog posts from the website/blog. Below is the image that showcases random blog posts when loaded.

Cosmost Plugin Example1

For What Other Things, I Can Use The Plugin?

There are some more ways you can utilize the plugin. If you own a WooCommerce powered website, you can easily use the plugin to do amazing things.

You can check the above video tutorial for understanding how to use the plugin for WooCommerce powered website.

Download Cosmos Plugin

If you have any question regarding the plugin, don’t forget to use the comment section below. You might want to check our collection of other plugins here.


  1. John


    My name is John, the author of Cosmos Plugin.

    I am happy to answer any questions regarding Cosmos, including setup and functionality, and future plans for additions.

    One thing I would like to add is that Cosmos is very flexible and can work with most content types.

    The page listing known shortcodes is not exhaustive and will continue to expand as the plugin’s usage grows.

    Any content type shortcode with an ‘id’ parameter will work for rendering.

    Cosmos also has the ability to use advanced term parameters, through an option that is toggled in the Advanced Settings page in the dashboard.

    The advanced term parameters allow you to limit results to certain terms, exclude certain terms and also ignore incoming URL parameters on an instance basis.

  2. WPDean

    Thanks for mentioning additional features John. I am sure they are awesome and very useful.

  3. Halili Evisa

    The online marketing domain is getting more competitive with every day that passes. Generating dynamic content used to be a herculean task.

    However WordPress, like always, has simplified it by introducing cosmos plugin. Though I knew about this, I didn’t know how the cosmos plugin worked until I came across this post. A million thanks!

Comments are Closed

Get That Cheddar, Baby!


Join thousands of other Wordpress site owners. Get free weekly tips to drive traffic, and make money with Wordpress!

You have Successfully Subscribed!