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:

Cosmos scans for incoming URL parameters/ UTM codes and stores them for further usage. For example, the website receives URL from Google Adwords campaign.

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.

If you load the page without any parameters, the page/post will act dynamically, improving your visibility and uniqueness of the content.

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.

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.

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.

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 Type: The options let you choose the different content type. It can be a post, attachments, page, clients, and services.

Display Full Content or Excerpt: You can choose to display full content or only the excerpt.

Render By: You can choose to render the page using shortcode or template.

Select Shortcode: The 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 Quantity: Quantity can be set from 1 to 8.

Set Orderby Parameter: If more than one quantity is fetched, you can set the order by to five different parameters.

True Link to Post: Set it true for creating a true link to the post.

Include Featured Image: Include 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.

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.