If Statement?
-
Hello,
I’m trying to create an if statement to check wether a post has been posted in a specific month/year. I’m not that proficient with inbuilt functions :/
if(in_month(get_the_ID(), $filter['month']) && in_year(get_the_ID(), $filter['year'])) { // My code here }
Obviously, in_month and in_year are fictional wordpress functions, but you get the idea of what I’m trying to achieve.
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘If Statement?’ is closed to new replies.