Aaron

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: modifying additional fields location. #1271795
    Aaron
    Participant

    Sorted, amazing, thank you!!

    I used a slightly different bit of code to display all custom fields, then used the if statement to do something if it had the right content (from a radio custom field).

    Learnt something new today that’s opened up a lot of options, so thanks for pointing me in the right direction!!

    Very very happy.

    in reply to: modifying additional fields location. #1271231
    Aaron
    Participant

    Thanks for your info above Victor, and sorry for not replying sooner.

    This was the code I was originally using for ACF on events, but as I can’t show them on the community form, I’m trying to swap them over to use Events additional fields.

    <?php if( get_field('home_or_away_match') == 'home' ): ?>
            <h1>home game<br>vs <?php the_field('opponent'); ?></h1>
    <?php endif; ?>

    I’ve recreated these custom fields in Events additional fields, event_type is a radio field type, and opponent is a text field…

    So am looking for a way to check if the home or away field is “home”, and how to display one of the additional fields on it’s own.

    I hope that all makes sense and you can help.
    Thanks.

    in reply to: modifying additional fields location. #1265034
    Aaron
    Participant

    Ignore the first question, I found another thread on how to modify the template in your child theme, got it working.

    Would be good to know if I can do the if else statement using the additional fields.

    Thanks

    in reply to: hide community visibility to group #1205735
    Aaron
    Participant

    Hi Nico.

    That seems to work for the main monthly calendar, but is there any way to do the same for the widgets too?

    Currently, with the code you supplied, I can hide an event category, but it still shows up in odd places, like the list widget, and the next event.

    Ideally it’d be sitewide, so hiding ALL category A elements throughout the site.

    Thanks for all your help.

    Aaron
    Participant

    Hi George.

    We found the problem. It was the hosting package missing mbstring which the PHP wasn’t running.

    They activated it and voila, it appeared.

    Thanks for all your help.
    Aaron

    Aaron
    Participant

    I tried that earlier, got the same error. Same safari console errors.

    No, thank you for all your help. If you’d like to log in and see the problem first hand I can give you login details.

    Does the plugin require any server / Apache / PHP minimum specifications? Could it be memory? Thinking outside of the box just incase.

    Aaron

    Aaron
    Participant

    to follow up… the error is coming from post.php, but I have no such file.

    And here’s more on the error…

    jQuery(document).ready(function() {
    		jQuery('#ihc_drip_start_certain_date').datepicker({
    			dateFormat : 'dd-mm-yy',
    			onClose: function( selectedDate ){
    				jQuery( "#ihc_drip_end_certain_date" ).datepicker( "option", "minDate", selectedDate );
    		    }
    		});
    		jQuery('#ihc_drip_end_certain_date').datepicker({
    			dateFormat : 'dd-mm-yy',
    			onClose: function( selectedDate ) {
    				jQuery( "#ihc_drip_start_certain_date" ).datepicker( "option", "maxDate", selectedDate );
    		    }
    		});

    Hope that helps, am really at a loss.

    Aaron

    Aaron
    Participant

    This reply is private.

    Aaron
    Participant

    This reply is private.

Viewing 9 posts - 1 through 9 (of 9 total)