conditional tags
-
Hi – I can use the following php to add content to all posts but how would I target events posts only? Also how would I target an event category with slug ‘training'(ID 32). Tried lots of combinations but can’t figure it out!
<?php if ( is_single() ) : ?>content<?php endif; ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘conditional tags’ is closed to new replies.