post_class() multiple values
Is it possible to add two variables to the post_class()?
At the moment I’ve got this:
<?php post_class('custom-class ' . $var1 . $var2); ?>
So one custom class and two variables. This is working, but it’s putting the two classes of the variables together, without a space…
Is it possible to simply add a space?
Thanks in advance!
- The topic ‘post_class() multiple values’ is closed to new replies.