danilolaurindo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to not show posts from yesterday and before?Anybody?
Forum: Fixing WordPress
In reply to: How to not show posts from yesterday and before?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
Forum: Fixing WordPress
In reply to: Getting rid of the post datejugularbean, search your files for the tags “the_time”. You should delete them.
Forum: Everything else WordPress
In reply to: Languages – converting .PO to .MOWell, 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 😉