Broken function in template-parts.php
-
Last function function sdir_featured_marker()
cause error in plugin activation. There is missed code inside. I corrected by myself:function sdir_featured_marker(){ global $wp_query; $postid = $wp_query->post->ID; $m = get_post_meta($postid); if(isset($m['listing_status'][0]) && $m['listing_status'][0] != 'basic'){ ?> <span class="button tiny radius sdir-featured-marker">АКЦЕНТ</span> <?php } else { ''; } }
There is missed “php”, not big deal but breaks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Broken function in template-parts.php’ is closed to new replies.