- Step 1: Create the Code. This is where you need to create your functionality. ...
- Step 2: Save the Code (But NOT in the Functions. php File) ...
- Step 3: Include Your Custom PHP File. Now we need to tell WordPress where to find your custom shortcode file. ...
- Step 4: Define Your Shortcode. ...
- Step 5: Add Your Shortcode.