WordPress.org

Ready to get started?Download WordPress

Forums

Posts in Page
[resolved] display only posts with custom date (2 posts)

  1. mediatic
    Member
    Posted 1 year ago #

    I created some custom fields for showing futur events ( website for a nightclub).

    I have a field called "date_de_la_soiree".
    I would like to display a list of next events, and another with old events.
    How can i do ? Must i use [ic_add_posts post_type='post_type'] ?

    http://wordpress.org/extend/plugins/posts-in-page/

  2. Eric Amundson
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    Hi mediatic,

    Not sure I'm understanding correctly.

    If you're just using custom fields, then specifying post_type isn't going to help.

    If you're working on a site that's going to show events, have you considered using an event management plugin?

    I suppose if you're just using custom fields with posts, you could create a category called 'current' and one called 'past' and then use the category switch in your shortcode to only pull in those posts in the current or past categories.

    That would work, but would require that you update the categories as the events pass.

    Depending on your total requirements, I'd consider an events plugin.

    Hope that helps.
    Eric

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic