• Here’s one that I feel has a simple solution but I have not idea how…

    So, I’m building a template and using <?php get_calendar(); ?> I’ve put a calender in a custom single post page for the category ‘blog’. There are 2 things that I want to do with this and I can’t find a solution of either despite there being a few posts about this topic. So forgive me if I sound like a broken record player:

    1. Display posts in the calender from a certain category ID (‘blog’). I think this is to do with the general template functions template.

    2. Using advanced custom fields to call <?php the_field(slideshow_image); ?> (which is just an uploaded image inside the post’s admin page) add a thumbnail to the permalink of that blog post. So the everyday on the calender that has a post on it has a picture on it.

    I know some of these topics have been touched on before but please don’t take this as laziness – I’m really struggling for a robust solution. And I shouldn’t be putting 2 questions in 1 but I feel they are very similar and can therefore be killed by 1 php stone. Please cast your stones my way.

Viewing 6 replies - 1 through 6 (of 6 total)
  • What calendar plugin are you using?

    Thread Starter Jonathan

    (@jon-morts)

    Hi sorry I should have mentioned I’m not using a plugin. I’m just using the code <?php get_calendar(); ?>. I understand that in general.php there is the function that runs this feature.

    The functionality that you want is not available in the default calendar: http://codex.ww.wp.xz.cn/Function_Reference/get_calendar

    Thread Starter Jonathan

    (@jon-morts)

    thanks esmi, do you know a way I could make it?

    Thread Starter Jonathan

    (@jon-morts)

    Does anyone know this one?

    If I can find the code in the <?php get_calendar(); ?> function that calls the permalink then I can insert <?php the_field(‘post_thumbnail’); ?> which is a custom field I made. Then I can make a global variable to get the current parent category and use that to only include posts from that page.

    I’m a bit out of my depth and I forgot my arm bands so if anyone out there knows how to swim please help!

    Thread Starter Jonathan

    (@jon-morts)

    nudge nudge 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Calendar post thumbnail image’ is closed to new replies.