hey scribu,
I am trying to use this plugin: http://wordpress.org/extend/plugins/tdo-mini-forms/ to allow visitors to submit events. Most of the fields they submit are custom fields.
Now I want to use your plugin to filter for those fields, i.e. the event month...
The TDO plugin gives certain names ot its custom fields, I tried copying those and creating them in your plugin but none of my filters work.
i.e. I have a custom field created by TDO: Author Name
I created the same custom field in your plugin: Author Name then I try and filter like this: http://021club.co.za/?Author+Name=testname01 and it doesn't show anything.
Do I first need to set up the template?
Would you mind giving the other plugin a test run with your plugin?
Or can I submit more info for you?
http://wordpress.org/extend/plugins/custom-field-taxonomies/
The query you should be doing is:
http://021club.co.za/?author-name=testname01
CFT doesn't allow spaces in custom field keys.
any chance to allow spaces as the other plugin that generates the custom fields doesn't allow me to chose the names... it simply creates them similar to this: "TDF form#1 customfield#1"
As a temporary fix, you can do this:
In the plugin directory, open admin.php and comment out this line:
$key = sanitize_title_with_dashes($key);
Then re-add your custom field keys.
ok, will try that.
so even if the custom fields are created automatically by the other plugin I still need to manually add them via your plugin?
Yep. You might not want to make all of them searchable, you know.
ah, ok makes sense :-) but just to make sure: creating those custom fields inside your plugin that I want to be searchable, doesn't kinda overwrite the ones generated by the other plugin? Anyway, even if it did, its the same name, so I should be fine, thanks.
No, each plugin stores it's keys separately.