php - Odd issue with get_the_ID() -
i have little php script uses get_the_id() , scrubs create button points category page on wp site. issue after couple months of working fine, mysterious colon has showed up. can seem find in wp documentation has changes , why colon being printed page.
the code generating follows:
<?php $simplecats= tribe_get_event_categories( get_the_id(), array( 'before' => '', 'sep' => '', 'after' => '', 'label' => '', 'label_before' => '', 'label_after' => '', 'wrap_before' => '<div class="avia-button-wrap avia-button-left eventcatbtn">', 'wrap_after' => '</div>' ) ); $simplecats= preg_replace("/events\/category\//", "", $simplecats); echo $simplecats; ?>
any ideas why colon being printed?
Comments
Post a Comment