Hallo,
ich versuche URL-Parameter über ein Shortcode an ein iframe zu übergeben. Leider ohne Erfolg.
Diesen Code habe ich in die functions.php eingebunden.
Code
function plw123_getget_shortcode( $atts, $content = null ) {
extract( shortcode_atts( array(
'category_id' => '',
), $atts ) );
return $_GET[$category_id];
}
add_shortcode( 'getget', 'plw123_getget_shortcode');
Das iframe ist über das HTML-Widget von Elementor eingebunden.
Code
<iframe src="https://booking.casona.com/de/booking/hotels/HmkLEyvk/reservations/new?category_id=[getget name='category_id']" style="border:0px #FFFF none;" name="myiframe" scrolling="auto" frameborder="0" align=off marginheight="3px" marginwidth="3px" height="100%" width="100%"></iframe>
Der Shortcode wird blöderweise nicht ausgeführt.
Jemand eine Idee?