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.

you can see colon in image

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

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -