WPCode Logo

WPCode Blog

Everything you need to know about the WPCode plugin

[New] Shortcode Attributes and Enhanced Smart Tags in WPCode 2.0.12

[New] Shortcode Attributes and Enhanced Smart Tags in WPCode 2.0.12 

I am thrilled to unveil the latest update to WPCode, your go-to WordPress plugin for adding custom code snippets to your website. With version 2.0.12, we are introducing two exciting features: support for shortcode attributes and enhanced Smart Tags. These additions will revolutionize the way you use snippets, making them more reusable and easier to manage than ever before!

Shortcode Attributes: Create Highly Flexible Snippets 🧩

We understand the importance of flexibility when it comes to managing code snippets. That’s why we added support for shortcode attributes into WPCode. Now, you can define attributes for your snippets, allowing you to customize their behavior and appearance based on specific parameters.

Registering shortcode attributes to a WPCode snippet

Here are some examples of how this new feature benefits you, our users, in achieving your goals.

Simplify Content Personalization

Let’s say you have a snippet that is used to display a featured image. With shortcode attributes, you can now define parameters such as image size, alignment, or even the option to display captions. Instead of creating multiple snippets for each variation, you can now reuse a single snippet by passing different attributes, making content modification a breeze!

This also means that when you have to make changes, you only have to update 1 snippet.

Streamline Styling Options

Imagine you have a snippet with a sign-up form for your newsletter. By utilizing shortcode attributes, you can define attributes like color, style, or even animation effects, making it easier to adapt the sign up form to different sections of your site. With just one snippet, you can now create multiple variations without the hassle of duplicating or maintaining separate code blocks.

Enhanced Smart Tags: Maximize Efficiency 💡

In addition to shortcode attribute support, in version 2.0.12, we have expanded the functionality of Smart Tags within the WPCode snippet editor. Previously limited to the WPCode Page Scripts metabox, Smart Tags are now available for use in HTML, Text, JavaScript, and Universal snippets.

But that’s not all! We’ve added 6 new pre-defined Smart Tags to further enhance your experience:

  • Custom Field: display the value of any custom field by its key.
  • Author name: Easily display the current post author name.
  • Author id: Tracking individual author performance is now easier than ever.
  • Author URL: Add direct links to the Author page.
  • Login URL: Use conditional logic to link directly to the Login URL
  • Logout URL: Allow users to logout by adding a link in your snippet.

Moreover, we have extended Smart Tags to cover all the shortcode attributes you define, giving you unprecedented control and customization options. As you define your shortcode attributes they automatically become available as Smart Tags.

Whether you’re embedding dynamic content, incorporating user-specific data, or utilizing third-party APIs, Smart Tags empower you to create more interactive and personalized experiences across your entire website effortlessly.

Upgrade to WPCode 2.0.12 and Unlock New Possibilities ✨

Don’t miss out on these game-changing updates! Upgrade to WPCode 2.0.12 today and leverage the power of shortcode attributes and enhanced Smart Tags to take your code snippets to new heights. Simplify content modification, streamline styling options, and maximize efficiency like never before.

As always, if you have any feedback or questions, reach out to our support team and we’ll be happy to help.

Yours truly,
Mircea Sandu
Lead Developer, WPCode

Add A Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Get WPCode

Popular Resources

Get free tips and resources right in your inbox, along with 500+ others

Follow Us

Get Started Today & Add Your Own Snippets

Future-proof your website with WPCode Snippets and improve the way you manage code across all your websites.