Quantcast
Channel: Syntax for conditional statement in Wordpress functions.php - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article


Answer 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 Article


Syntax 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
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>