Support » Plugin: The Events Calendar » Events on the home page: date problem

  • Resolved becair



    I am new here, and not very familiar neither with WordPress nor with forums, so please feel free to tell me if I’m not posting in the right place, or any other thing I might do wrong.

    My configuration is WordPress 3.9.1 with the ColorLabs Magnus Theme 1.1.3 and The Events Calendar 3.6.1.
    In my theme, the homepage displays the posts.
    My goal is to add the events from my calendar on the homepage, too.
    There is a checkbox in The Events Calendar preferences panel to do that, but obviously my Theme prevents it from working fine.
    Then I found a function on this forum here. I added this function to my child theme functions file and it does the job. Now the events are considered as other posts.
    This is visible on the still under construction homepage here:
    Now there is one more thing I miss.
    By default, for every post on the homepage, my theme shows the category of the post, then a dash, then a relative date. As you can see in the slider (e.g. Nouveautés – il y a 3 semaines, which means New publications – 3 weeks ago). Fine as far as the posts are concerned.
    But with the events, no category is displayed, which is normal I guess, and the relative date is pointless. I would just like to write “Events” in place of the post category, then get the dates of the event, exactly like in the widget that I use in the footer.
    And I don’t know how to do.
    Any advice will be much appreciated.
    Thank you in advance

    Fred, Le Bec en l’air.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello again,

    Another thing that I am not able to do is to have the old events removed from the homepage. I guess that it is possible to include this in the function ?

    Thanks again for your help

    Fred Le Bec en l’air.

    Plugin Contributor leahkoerper


    Hi Fred,

    Thanks for your post. As outlined in our forum guidelines, we aren’t able to help with these kinds of customizations. But we do have some handy resources that might be helpful for you:

    Themer’s Guide – provides an overview of how to customize the plugin’s frontend appearance.
    Tutorials – useful tips and tricks for changing how the plugin looks and behaves.
    Technical Docs – provides an overview of the classes and functions in each plugin

    Good luck, and thanks for using The Events Calendar!


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Events on the home page: date problem’ is closed to new replies.