If you are not aware of what WordPress shortcodes are, then I’ll clarify that these are codes that allow you to create various creative things using scripts and code so that you do not have to embed bulky and awkward codes in your posts and pages. They are compressed into just one line-shortcode and these can be implemented using WordPress shortcodes plugins.
In short, the shortcode is typically used to quickly invoke a long script or code snippet. Despite the fact that WordPress has its own set of shortcodes that can be used in the posts and pages of your blog, in addition to them, there are a large number of shortcodes that offer almost limitless possibilities.
Shortcodes can be inserted into a blog theme manually or through a plugin.
The problem is only to find among the huge number of those that will suit you. Do not worry, in this article we will introduce 10 WordPress plugins that add a functional shortcode to your blog, as well as 10 codes that you can add yourself.
WordPress Shortcodes Plugins
Here are some of the plugins that let you apply or customize WordPress shortcodes. Where appropriate, an alternative shortcode plugin is proposed that does almost the same thing.
A simple plugin that adds several useful shortcodes designed to display the quantitative characteristics of your blog:
[postcountbr] – displays the total number of blog posts posted;
[catcountbr] – displays the total number of categories that contain one or more entries;
[tagcountbr] – displays the total number of tags that are contained in one or more entries;
[totalwords] – displays the total number of words in published posts;
[commentcount] – displays the total number of approved comments;
[PageCount] – displays the total number of published pages.
2. WordPress Shortcodes
This plugin includes over 20 WordPress shortcodes and a simple shortcode editor.
You can use it to add cool elements to your blog, such as:
- SEO-ready tabs, buttons;
- Cards of authors;
- Message boxes;
- Smart links
- Lists etc.
You can even combine several built-in shortcodes to create unique elements such as a list of buttons or links.
Other options: There are two similar plugins J Shortcodes and Arconix Shortcodes – which also include a set of useful shortcodes. For example, to create content and dashboards, buttons, tabs, drop-down panels, radio buttons, and more.
This shortcode plugin adds two shortcodes to the blog:
[post-content] – allows you to display the contents of a single post or page, inside another post or page. You must use an argument in the shortcode to specify the post ID. You can also use arguments to display a specific image, a fragment of a post, and a post title;
[post-list] – displays a list of posts inside another post. This shortcode also supports optional arguments for customizing lists: options for sorting items, message types/statuses, image output, etc. You can even pull up a list of posts from another blog by adding the blog ID as an argument to the shortcode.
The shortcode plugin has a built-in TinyMCE button that you can use in the blog editor to embed shortcodes. This will allow you to add your own shortcodes.
Other options: If you are looking for something similar, try the Shortcode Manager plugin, which allows you to create, manage, import and export shortcodes.
Sometimes, you can disable the shortcode by accidentally leaving part of its functionality. Instead of iterating over each page or post to remove the “ broken ” shortcodes, it will be easier to hide them. This plugin will help you do this.
Other options: Hide Unwanted Shortcodes is a similar shortcode plugin that makes “broken” shortcodes inaccessible for viewing on the site. After that, you can edit the shortcode on the plugin settings page.
If you need an easy way to create columns inside your posts and pages, this is the perfect shortcode plugin. Just select the desired column width from the popup window of the plugin and it will be added to the message editor.
A choice of 10 column sizes: from one-sixth to the entire width of the page. You can also customize the filling of each individual column.
If you want to use an adaptive column grid for your posts and pages, try the Metaphor Shortcodes plugin. With it, you can set specific parameters for columns: such as spacing, start, end, and classes.
This plugin also supports several other convenient shortcodes, including:
- Post Block Shortcode – displays the title and excerpt from any type of message anywhere in your blog;
- Post Slider Shortcode – creates a horizontal slider for any type of message and displays it in the blog content;
- Pricing Table Shortcode – creates various types of price tables to display in the content of your blog.
ShortCodes UI is another shortcode plugin that uses its own TinyMCE and Quicktag buttons. You can easily embed shortcodes in your posts and pages through visual and HTML editors.
This shortcode plugin is great for beginners who are new to codes, they are intended for training video tutorials. Those who know a little more about codes are likely to appreciate the syntax color markup in the code editor.
There is also an import/export function with which you can move your shortcodes from one site to another and even share it with friends.
My Shortcodes is a similar plugin with a beautiful interface that allows you to create your own shortcodes. In the admin panel of the plugin, you can manage, edit, enable/disable, and also export elements and shortcodes. Interactive viewing allows you to see how your shortcode looks before it is added to a post or page.
This is a very simple plugin that allows you to add the [LastUpdated] shortcode to your posts and pages. This function will display the date and/or time of the last update.
There are also options for changing the date/time display format.
11. Geoportail Shortcode
This plugin adds a Geoportail map to your posts and pages using the shortcode. After that, you can set the size of the map, scale, location (latitude and longitude), size (normal, mini), territory, layers and much more.
The map supports geotags (which can be connected via the Geolocation plugin ) so that the blog displays the place where your messages were written (published).
The plugin also includes a shortcode builder to configure the card shortcode, as well as a preview function with which you can view your map before publishing it.
There are also simple shortcodes that you can use on your blog – without having to install them through a plugin.
For each shortcode, we will provide you with:
- The body of the shortcode is a long piece of code that must be inserted into the theme functions file (functions.php) of your blog, the insert is carried out through the “Editor”, available in the WordPress toolbar (Design> Editor);
- A shortcode that can be placed anywhere on your post or page connects functionality through it.
Some shortcodes may require additional customization (for example, adding your personal Google AdSense code), so you still need some knowledge about editing codes.
Other shortcodes may have additional parameters that you can add: for example, width and height. You can learn more by clicking the link for each shortcode.
Inserts a Google AdSense ad unit in the place of your content where you need it.
Shortcode : [adsense]
Lists related posts above or below the page content.
Shortcode : [related_posts]
Adds a PayPal button with which users can conveniently make a donation.
Shortcode : [donate]
Adds a Google Map anywhere in your post.
Shortcode : [googlemap src = “google_map_url”]
17. Display External Files
Inserts additional files, such as text and images, into your messages.
Shortcode : [show_file file = “http://www.test.com/test.html”]
18. Add A Login Form
Adds an authorization form to your posts and pages, not just the sidebar.
Shortcode : [devpress-login-form]
19. Display Private Notes
Adds private notes to your posts or pages, they will be visible only to the administrator.
Shortcode : [note] Your Note Here [/ note]
20. Registered Users Only Content
Adds content that only registered users can see.
Shortcode : [member] For Registered Users Only [/ member]
21. Embed YouTube Videos
The shortcode allows you to insert not only YouTube videos, but can also be used to insert other multimedia materials, such as audio and images.
Shortcode : [youtube id = “_ ggWarwhv9M”] Check out this video! [/ Youtube]
Protects your email from spammers, making it impossible to copy it from the page.
Shortcode : [email address = “[email protected]”]