Use code snippet to create a simple WordPress shortcode. I have created a sample shortcode prefix-portfolio
with 2 attributes.
Before use change:
- Change the
Prefix
with your own unique prefix. - Change the
prefix
with your own unique prefix.
How to use?
- Create a new page and add shortcode.
- Open the page. It’ll show the output of the shortcode like below:
Code Snippet
Advertisements