Why php code is giving error in shiftnav built in toggle content area
-
I have added this code to built-in toggle content area of shiftnav but php in href is giving error.
<a id=”flag-links” href=”<?php $arurl= get_post_meta( get_the_ID(), “engURL”, true );
if (!empty($arurl)){ if (is_category() || is_archive()) {
$cat_id = get_query_var(‘cat’);
$cat_data = get_option(“category_$cat_id”);if (isset($cat_data[‘hreflang’])){
echo $cat_data[‘hreflang’];
}}
else {
echo urldecode($arurl);
} }
?>”>
Help please!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Why php code is giving error in shiftnav built in toggle content area’ is closed to new replies.