Event shows Cost as Free
-
When using the Events calendar the Event Cost section states the following, “Enter a 0 for events that are free or leave blank to hide the field.”
When viewing the event on my home page the event still displays the Cost: FREE.
I have asked my Theme developer to add to the Themes Child Page on the theme functions.php file the following code as suggested on the Forum but it has had no effect at all:
<?php
/*
* The Events Calendar – Make code empty if it’s 0 or Free
*/
add_filter ( ‘tribe_get_cost’, ‘tribe_not_show_free’, 10, 3 );
function tribe_not_show_free ( $cost, $post_id, $with_currency_symbol ) {
if ( $cost == 0 || $cost == ‘Free’ ) {
$cost = ”;
}
return $cost;
}Please can you advise how to resolve this?
Thanks
The page I need help with: [log in to see the link]
- The topic ‘Event shows Cost as Free’ is closed to new replies.