PDA

View Full Version : Can't get Filter to show up on wordpress page


beccawitz
03-11-2008, 10:50 AM
I am trying to add a calendar filter using
<?php require("../tester/calendar/plugins/filter.php"); ?>
but can't get it to work.
I am using wordpress and got the page to work with the calendars, but not the filters.

Please help me :(
Thank you

ve9gra
03-11-2008, 12:43 PM
For the filter to work, it has to be able to find the categories variable. So if you're declaring the filter before the $CSS and $OL line, or if you are using a plugin to be able to add PHP directly in your posts, then the filter won't work.

You'll need to add a require to config.inc.php right before you display the filter.

beccawitz
03-12-2008, 04:03 AM
Thank you for responding so quickly.

The calendar page on my wordpress site is being called from a template page, meaning that I'm not using a plugin that lets me put php directly into my posts.

I put the $CSS in the header, and $OL in the body, and then called the 'require' to the filter from the template page.

Are the categories in wordpress getting confused with the easyphp categories?

What exactly should I add to the config.inc.php? Where is that file? Where do I add what I'm supposed to add?

Also, if I want to add an advanced filter to my wordpress site, how do I do so?

Thank you so much for your help.

ve9gra
03-12-2008, 03:27 PM
What I meant what you need to add require("config.inc.php");beforerequire("plugins/filter.php");

Of course, adjust your paths accordingly.

There is no "advanced filter" like in the Event Manager. The "full-filter.php" is a plugin that I sell.