Hi there,
we are trying to include a php file with an shortcode.
Therefore we added the following code to our Pro V4-Child Theme functions.php:
function support_function() {
include_once 'support.php';
}
add_shortcode('support', 'support_function');
The output of support.php is showing in PRO Backend Editor without any Problem as shown in the screenshot below:
But when i save the site the frontend doesn’t show anything. I dont even get a PHP Error or any Error in Google Chrome Console. The Column with the Text-Element / Raw-Element (tried both) is just empty as shown in the following screenshot:
Can you help me with this problem? This is only a staging environment – actually we have the exact same website running on another server with PRO V3 and it’s working there. I will add the links in a secret note to this topic.
Best regards from Germany
Max