Forum Replies Created
-
AuthorPosts
-
AaronParticipant
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.
AaronParticipantThanks 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.AaronParticipantIgnore 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
AaronParticipantHi 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.
January 28, 2016 at 2:32 am in reply to: jquery error stopping me from editing tickets… or post, please help! #1063539AaronParticipantHi 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.
AaronJanuary 20, 2016 at 5:18 pm in reply to: jquery error stopping me from editing tickets… or post, please help! #1059564AaronParticipantI 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
January 20, 2016 at 4:11 pm in reply to: jquery error stopping me from editing tickets… or post, please help! #1059506AaronParticipantto 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
January 20, 2016 at 4:05 pm in reply to: jquery error stopping me from editing tickets… or post, please help! #1059500AaronParticipantThis reply is private.
January 20, 2016 at 12:49 pm in reply to: jquery error stopping me from editing tickets… or post, please help! #1059436AaronParticipantThis reply is private.
-
AuthorPosts