Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter danilolaurindo

    (@danilolaurindo)

    Anybody?

    Thread Starter danilolaurindo

    (@danilolaurindo)

    Well, the plugin doesn’t seem to suit my needs. This simple loop goes for just one of my pages, and it tells students about the upcoming events (I have EventCalendar running for that).

    I have ran through the Codex so I could learn more about the query_posts, but still haven’t achieved much…

    This piece of code shows something around what I need:

    <?php $current_month = date('m'); ?>
    <?php $current_year = date('Y'); ?>

    <?php query_posts("cat=22&year=$current_year&monthnum=$current_month&order=ASC"); ?>

    The only difference is that I needed that the loop didn’t show anything that belongs to past days. All events dated back to August 24 should not show up anymore.

    I could use the variable $day-1 to exclude posts, but then it would exclude only the posts from yesterday, not from the last week, or last month…

    Any other thoughts guys? :/

    ps.: Thanks Samboll

    jugularbean, search your files for the tags “the_time”. You should delete them.

    Well, this is an old topic, but maybe my thoughts will help others someday.

    If you’re saving your .po files and it’s not automatically creating the .mo in the same directory, even though you have the option checked at preferences you have to simply… uncheck it! It seems like a bug or something, but if you save while the checkbox is unchecked, poEdit will autogenerate your .mo file 😉

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