Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thanks for you help!
    I did what you told me and even though some of the messages were translated, some other are still in english like:
    This entry was posted in Uncategorized. Bookmark the permalink. Modifier
    Do you know how to translate everything?

    Thanks again,
    Susana 🙂

    Did you ever found the solution for this?
    I am trying to do the same thing and would appreciate any help 🙂

    Thanks

    Thread Starter sugupal

    (@sugupal)

    yes, I did look into calendar plug-ins but I really didn’t found exactly what I wanted.
    Besides, right now my site is quite complicated and I want to keep it as simple as possible.
    But the good news is that I am almost there!
    I found a snippet that adds a “Date” custom field and then compares it to todays date and displays the posts that have an equal or greater date, so in other words upcoming events.

    <?php
    // Get today’s date in the right format
    $todaysDate = date(‘m/d/Y’);
    query_posts(‘showposts=10&meta_key=Date&meta_compare=<=&meta_value=’ . $todaysDate . ‘&orderby=meta_value&order=ASC’); ?>

    The only problem is that I only want to show the posts that have a date equal to today’s date. So I tried this (but it is not working):

    <?php
    // Get today’s date in the right format
    $todaysDate = date(‘m/d/Y’);
    query_posts(‘showposts=10&meta_key=Date&meta_compare===&meta_value=’ . $todaysDate . ‘&orderby=meta_value&order=ASC’); ?>

    As you might notice I am super new to php and would really appreciate some light to this issue.

    Thread Starter sugupal

    (@sugupal)

    It worked! Thanks 🙂

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