0

so I am working with wordpress and I created a calendar with events (custom post_type). I have a page which shows the calendar with all the event dates from this post_type which works fine. Now I want at each of this posts from this post_type this calendar to show up again but this time it should only show the event dates of this specific post.

How would I do that?

0

Use the the_date() or get_the_date( 'd/m/Y', $post->ID ) functions. This will show only the date of your post type. If you are outside the loop, you need to use the second function I've suggested with the post id passed as param.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.