-
Website
http://climbtothestars.org -
Original page
http://climbtothestars.org/archives/2007/02/26/events-in-wordpress/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Dan Dickinson
4 comments · 1 points
-
Scott Jarkoff
4 comments · 5 points
-
michelv
3 comments · 1 points
-
Thejesh GN
2 comments · 3 points
-
aqualung
12 comments · 2 points
-
-
Popular Threads
EventCalendar should do everything you want (I'm the author).
If you want different event categories, then just put your event posts in the "event" category AND another category.
The ec3_after=today query should work. Perhaps you are using the old EC3.1.0 with WP2.1? Try the newest version of EC and let me know how you get on.
Hey Alex, thanks for stopping by! I've upgraded to rc1 as you suggested. And yay! I've been able to get rid of the custom loop I used on the homepage to hide events, they do display in the archives and on the category pages, and ?ec3_after=today works as I need it to.
So... the only problem now is to change that ugly "?" URL into a pretty WordPress Page address. I'm willing to try rewriting it again, but it failed miserably last time I tried.
Plus, there is still the "two categories" issue. As I've set it up, I have an "Events" category and two subcategories "France" and "Switzerland". So the events are indeed in two categories. Now how could I split the ?ec3_after=today page to display either just France, or just Switzerland?
Here's the reply Alex e-mailed me -- my blog and Safari don't seem to get along:
The query works -- now I just have to figure out if it's less of a pain to try to get mod_rewrite to work, or to conjure up custom templates for those pages.
At the present moment, this has morphed into a mod_rewrite problem. Here is what wordpress puts in .htaccess:
<pre>
# BEGIN WordPress
</pre><IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I'd like to add a rule which goes:
<pre>
RewriteRule ^/somethingpretty/?$ /?ec3_after=today&cat=18
</pre>(I'm not 100% sure my rule is correct.) So, above the WP bloc of rules, I stuck this:
<pre>
<IfModule mod_rewrite.c>
</pre>RewriteEngine On
RewriteBase /
RewriteRule ^/somethingpretty/?$ /?ec3_after=today&cat=18
</IfModule>
But all I get when I test it is a Wordpress-powered 404 error. I don't have access to the error logs. Any ideas, anybody?
I had a similar problem once, but went for the second option: conjure up custom templates for those pages, as an in a new_archive.php. Its quite easier, and it did work properly for the time I used it.
Hi,
If you want the events to show up as regular posts and on a separate page. You can just post the events using a strict layout. Then create a template which accepts ONLY your events category to show them.
With some small hacks i can imagine you don't need plugins at all to get done what you want :)
All of the info you need for this is in http://codex.wordpress.org
Do a search for 'category page'.
Have fun.
I'm having the mod_rewrite problem and I'd like the solution because I'm working on two client sites right now and both really want the EC to work. The only problem is that since we have pretty permalinks turned on, clicking on an EC event returns a 404 error.
What code do I need to put into what custom WP Page or .htaccess file to get this thing to work. I've subscribed to and searched Alex's mailing list and have found nothing.
So how did you solve that one, Stephanie? Inquiring minds want to know!
Thanks.
Hi Joni -- I'm really afraid I absolutely don't remember :-(
I'm not even sure if I found a fix or not! If it comes back to me I'll let you know, but I'm sorry I don't have time to search now (packing to leave today).
Good luck!