Hi there,
i cant save my Cornerstone Page when the Shortcode [ppm] is implemented.
The Shortcode outputs a function i added manually to the funtions.php.
It includes the following Code:
function price_per_month() {
global $product;
$price = $product->get_price();
$months = 12;
$price_per_month = ($price / $months);
$total_per_month = round($price_per_month, 2);
return "
<div id='ppm-container'>
<div id='ppm-text'>
oder nur $total_per_month EUR pro Monat *
</div>
</div>
";
}
add_shortcode( 'ppm', 'price_per_month' );
Can somebody tell me why this is happening?