Changes between Version 1 and Version 2 of Ticket #58366, comment 45
- Timestamp:
- 06/13/2023 10:44:08 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #58366, comment 45
v1 v2 1 After upgrading my website to WordPress 6.2.2, I followed the suggestion of placing my shortcode in a template part and it worked for one website but not another. I'm really new to WordPress so I didn't know how to setup a debug environment in order to debug the code so I went old school brut force and started comparing components of each website. Through trial and error I discovered I had to do two things in order for a shortcode to work in websites running 6.2.2:1 After upgrading my website to WordPress 6.2.2, I followed the suggestion of placing my shortcode in a template part and it worked for one website but not another. I'm really new to WordPress so I didn't know how to setup a debug environment in order to debug the code so I went old school brute force and started comparing components of each website. Through trial and error I discovered I had to do two things in order for a shortcode to work in websites running 6.2.2: 2 2 3 3 1. Place the shortcode in a template part and use that template part where you would use the shortcode