Documentation, Reference Materials, and Tutorials for WPCode
Do you want to automatically track a user’s id or use the post author name in a snippet? Smart tags supercharge your snippets and scripts allowing you to save time but not having to code and dig through a lot of information to find relevant data.
Smart tags are small pieces of code that make it easy to insert relevant information into your snippet similar to how you would use variables when writing code. An example smart tag that is available in WPCode is:
Currently, you can use Smart Tags in 2 places in WPCode: the WPCode Page Scripts metabox in the page-specific scripts and starting with WPCode version 2.0.12 you can also use Smart Tags when editing Code Snippets.
The Smart Tags picker is placed above the editor where you can use Smart Tags, simply click the Show Smart Tags button to open the picker:
Simply clicking any of the smart tags in the picker will automatically insert it to your code where your cursor was last present. This makes it easy to precisely add the smart tag where it is needed.
Still stuck? How can we help?
Last Updated on