• I don’t seem to be getting anywhere with googling this.

    WordPress automatically adds each post to the calendar. How do I change the type of posts it uses? I only want to display my custom posts on the calendar.

    I am using

    <?php get_calendar(); ?>

    to show the calendar.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I just looked at the code and the “post” post type is hard coded into that function. If it were me, I would copy the get_calendar() function and create a custom version with the custom post type.

    Thread Starter jelly_bean

    (@jelly_bean)

    Thanks for the input. Yes that worked perfectly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display custom post types on calendar’ is closed to new replies.