WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Remove Post Date for Event (6 posts)

  1. netforest
    Member
    Posted 1 year ago #

    Is there a way to remove the Post_Date when viewing a single event. It's a little confusing to see the date the event was posted as to the actual date of the event.

    http://wordpress.org/extend/plugins/events-manager/

  2. zsolemolina
    Member
    Posted 1 year ago #

    netforest, yes, it's possible.. but u need to work in the single event page, just commenting the code where date is shown.

    eg:
    <!--
    Date(s) - #j #M #Y #@_{ \u\n\t\i\l j M Y}
    Time (24h Format) - #_24HSTARTTIME - #_24HENDTIME
    Time (12h Format) - #_12HSTARTTIME - #_12HENDTIME
    -->

  3. agelonwl
    Member
    Posted 1 year ago #

    you can also try this snippet - paste in your theme functions.php

    function custom_remove_postdate(){
     remove_filter('the_date',array('EM_Event_Post','the_date'));
    }
    add_action('init','custom_remove_postdate');
  4. zsolemolina
    Member
    Posted 1 year ago #

    Good idea agelonwl!

  5. netforest
    Member
    Posted 1 year ago #

    What I was asking is how to remove the date the post was published whch shows up at the top of each post. I chose to use posts instead of pages.

    What happens if I switch to pages for events even though I have multiple events created as posts.

  6. agelonwl
    Member
    Posted 1 year ago #

    Hi,

    have you tried my suggested snippet above? or do you have a sample link for us to see?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.