↧
Answer by Benz1 for Syntax for conditional statement in Wordpress functions.php
Thanks Andrew. After much Googling and trial & error, I've come up with the following. I don't think it's a very elegant solution or even if the syntax is completely correct but it seems to...
View ArticleAnswer by Andrew Schultz for Syntax for conditional statement in Wordpress...
Here is a starting point.function custom_event($content) { global $post; if( in_category( 'category-name-slug-id', $post ) ) { $beforecontent = '<strong>[acf field="date"] [acf field="time"] [acf...
View ArticleSyntax for conditional statement in Wordpress functions.php
My knowledge is extremely limited but I've managed to add a filter in a custom functions.php file to display some custom field shortcodes before Post content://Insert custom event fields at the...
View Article