• Resolved maxcar

    (@maxcar)


    Hi everyone,
    As I have many posts with future date (actually they are future events), I need to list the posts starting from the current date, to avoid to list the previous ones.
    I am trying to use List Category Post.
    Using [catlist] I have found the parameter after (i.e. after=”2017/03/15″) and it works fine manually inserting a specific date, but my need is to pass automatically the value of the current day (system date) to the after parameter and let the list start from that point.
    Could someone help me?
    Thanks in advance
    Massimo

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Daniel Floeter

    (@kometschuh)

    Hello Maxcar,
    we support filter and action hooks in our premium widget: http://tiptoppress.com/term-and-category-based-posts-widget/

    And I can write you a query filter extension like for the Event Post Widget: “Show only post from the current month and the current year”: https://gist.github.com/DanielFloeter/cdee81bbb6546c108b94e418b7169b90

    Or like to show posts of current month: https://gist.github.com/DanielFloeter/c0ead3b8068b345ff9ba70ed7a431833

    It’s possible to download, install and use the premium widget on localhost for trail: http://tiptoppress.com/free-trail-localhost/

    Greetings
    Daniel

    Thread Starter maxcar

    (@maxcar)

    Thanks for your help Daniel.
    Apologize me, I have no experience at all with php etc.
    If you could help me to have a query filter extension to show posts from the current date I will get the pro version.
    Greetings
    Massimo

    Plugin Author Daniel Floeter

    (@kometschuh)

    Hello Maxcar,

    what do you want to do. Can you describe it more please.
    – Post only from one day, the current day.
    Otherwise it make for me no sense, because a normal post have only a publishing date and with the most widgets you can order by date? And a post will not shown if the publishing date is not jet.
    So maybe I do not understand something? = > For me it’s a normal “order by date”/”show latest”.

    Thread Starter maxcar

    (@maxcar)

    Hello Daniel,
    I am using the posts of a category as future events.
    Think as concerts: since they will happen in the future the publishing date of the post/event is the future concert date.
    Of course also my future posts are currently shown (I use a plugin that allows this).
    My need is to display automatically only the posts/events with a post date >= current/system date, in a ascending date order, to avoid to show also the previous posts (concerts that happened in the past)
    Many years ago I did this in a ASP website and it worked fine for me.
    Apologize for my bad english 🙂
    Thanks for now

    Plugin Author Daniel Floeter

    (@kometschuh)

    Hello Maxcar,

    can you please write this plugin you use to show (normal) posts in the future (“… Of course also my future posts are currently shown (I use a plugin that allows this). …”)?

    Daniel

    Thread Starter maxcar

    (@maxcar)

    Hello Daniel,
    the plugin is called “The future is now”.
    Massimo

    Plugin Author Daniel Floeter

    (@kometschuh)

    Hello Maxcar,

    here is the Filter Extension widget (Future Posts Extension) you need:
    https://gist.github.com/DanielFloeter/e0700945a74875f98759ca14afa0a258

    Downlaod the file as ZIP and upload the ZIP file with WordPress (Dashboard > Plugins > Installed Plugins > “Add New” button > “Upload Plugin” button >) or copy it to your plugin folder ([your-wp-installation]/wp-content/plugins/future-posts-extension.php) to your WordPress installation.

    To use the extension you need the Term and Category Posts Widget not the Category Posts Widget. It’s possible to download, install and use the premium widget on localhost for trail: http://tiptoppress.com/free-trail-localhost/

    About more details about the premium widget Term and Category Posts Widget please write us to http://tiptoppress.com/term-and-category-based-posts-widget/support/

    Thread Starter maxcar

    (@maxcar)

    Hello Daniel,
    I will be back home soon and will try it.
    Thanks a lot for now,
    Massimo

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

The topic ‘Post list from current date’ is closed to new replies.