Hello Community,
it is possible to insert an acf-field-code in your Shortcode (php)?
[eal]Amazon Echo Dot[/eal]
<?php echo do_shortcode("[eal]<?php the_field( 'modell' ); ?>[/eal]"); ?>
<?php
echo do_shortcode( '[eal search="<?php the_field( 'modell' ); ?>"]<?php the_field( 'modell' ); ?>[/eal]' );
?>
<?php
$amazon = get_sub_field( 'modell' );
echo do_shortcode( '[eal search="' . $amazon . '" ]Test[/eal]' );
?>
]]>
Clicking on any EAL links will only ever direct me to my default store (which happens to be the US) and will only use the default tracking ID.
Checking the developer console of my browser, I can see a eal-geotargeting
cookie, which has the correct value of GB
. I’m not directed to amazon.co.uk, however, and my GB tracking ID isn’t used in the URL.
My tracking IDs are filled in on the EAL settings page and the Geotargeting
box is ticked.
General Settings Amazon Store / select your amazon store / no work/ Ican Select/
Please select your default Amazon store
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘mythemeslug_register_buttons’ not found or invalid function name in /homepages/22/d244284825/htdocs/clickandbuilds/AllenCleaning/wp-includes/class-wp-hook.php on line 288
Warning: array_push() expects parameter 1 to be array, null given in /homepages/22/d244284825/htdocs/clickandbuilds/AllenCleaning/wp-content/plugins/metronet-tag-manager/metronet-tag-manager.php on line 239
Warning: implode(): Invalid arguments passed in /homepages/22/d244284825/htdocs/clickandbuilds/AllenCleaning/wp-includes/class-wp-editor.php on line 660
]]>