Articles on: Website Pro

PHP Shortcodes

While Website Pro fully supports WordPress shortcodes, it does not support PHP shortcodes (<? at the top of a file). Support for these has been removed from PHP as of 7.0 as it can conflict with other types of files (such as XML).

Generally, it is recommended to use <?php  instead as this will help the system know to treat the file as PHP code. If your site currently uses PHP shortcode, you can use a program–such as Notepad++–to find and replace all instances of the shortcode.

Updated on: 09/07/2021

Was this article helpful?

Share your feedback


Thank you!