Gerald
Forum Replies Created
-
Forum: Plugins
In reply to: [Event Organiser] Adding an additional field to every eventYou have to output the content of your custom fields in your template. So if you want to show “age range” on the event template, the easiest way would be to add this to your single-event.php:
the_meta()
This outputs all custom fields. If you want to output only one, you should do something like that:
get_post_meta( get_the_ID(), 'age_range', true );
Forum: Plugins
In reply to: [Event Organiser] Adding an additional field to every eventYou would do that in functions.php of your theme. A third step would be necessary:
3. Show field data in your template using get_post_meta().
But actually there is an more easy way, in the case you are not comfortable with php code. You could use WordPress custom fields.
Forum: Plugins
In reply to: [Event Organiser] Adding an additional field to every eventYou do it the same way as you would adding extra fields to other post types:
- Add action add_meta_boxes and define fields
- Add action save_post and save custom data with add_post_meta() and update_post_meta()
Hope that helps!
Forum: Plugins
In reply to: [Event Organiser] Authors instead of venues dropdown filterThanks for your help!
I’m not sure if I understand your js hook system but it seems to me like the parameter “a” in the line you talk about is missing the id of the author (like it appears for venue).
Can you tell me where this parameter a is “filled” – or how I can add a variable like the author to this “a”-object?
Forum: Plugins
In reply to: [Event Organiser] Authors instead of venues dropdown filterFinally I managed to make a dropdown list filled with wordpress users. I made a function similar to eventorganiser_venue_dropdown(options) in frontend.js and filled it with get_users().
The problem now is how to filter the events in calendar. Any hints on where this filtering is done?
Thanks for your hint! Adding this code makes event categories appear translated.
Forum: Plugins
In reply to: [Requird] Not working for custom post typeSorry, my fault! Just saw that there was a JavaScript error on the form which blocked Requird plugin. Now everything works fine – despite that I can’t figure out how to make some custom fields (which don’t show up on the Requird Options Page) required.
What does a custom field need to be marked as required? Putting them in the “Enter the slugs of the custom fields separated by comma.” field doesn’t work for my custom fields defined in functions.php
Forum: Plugins
In reply to: [Private Only] More than one public page?For adding more than one additional exception you have to modify the code from Joshua David Nelson as there is a little error in the elseif:
elseif (!is_user_logged_in() && !is_feed()) { if (is_page('269') || is_page('another_page') || is_page('yet_another_page')) { return; } }
Forum: Plugins
In reply to: [Event Organiser] Pre-populate venue in Add New Event form?Thanks for your response, the use of wp_set_post_terms() worked out fine:
wp_set_post_terms( $post->ID, $term, 'event-venue' );
Forum: Plugins
In reply to: [Twitter Widget Pro] "You need to authorize your Twitter accounts"thanx mariogarcia.ar, you saved my day!
Forum: Fixing WordPress
In reply to: 500 internal server error while upgrading to 3.5AH01215: suexec policy violation: see suexec log for more details
Just got this error log message after upgrading from 3.4.1 to 3.5.1. The problem comes from file permissions set to 0644, after changing this to 0755 everything worked fine.
The problem seems to be with hostings using suexec to manage the permissions of files and folders. More info on this thread (in italian): https://www.wpitaly.it/2008/12/05/utenti-aruba-linux-aggiornamento-automatico-worpdpress-27/
Forum: Plugins
In reply to: [GD Star Rating] Rating function tries to load images from localhostFound the variable: Had to correct values for variable gd-star-rating in wp_options table.
Forum: Plugins
In reply to: [Inline Ajax Comments] Can't activate pluginThanks for your fast fix! I use PHP Version 5.2.17 on my server and now with your new release the plugin works fine. Great!
Now I have troubles making it compatible with an ajaxified WordPress Theme I’m trying to implement, but that doesn’t seem to be a problem of your plugin.
Forum: Plugins
In reply to: [GuahanWeb AJAX & WYSIWYG Comments] Can't get it to workSame problem here, error described by Peter makes it impossible to activate plugin.
Forum: Plugins
In reply to: [Silk AJAX Comments] AJAX refreshAlso looking for exactly that funcionality. Actually there is no plugin out there which displays submitted comments without refreshing the page, at least not for latest WordPress versions (3.5.1).