Tag Info

Hot answers tagged

10

My favorite plugin for that is Core Control which has very nice module for display of what is going in the cron - which events are set up, when are they next firing, etc. On getting your hands dirty level see _get_cron_array(), which returns internal stored data for cron events (top level of keys are timestamps).


7

Rather than trying to interfere with the button operation and doing validation in jQuery or javascript, I find it easier to hook the save_post action and do my validation in php (checking if certain post_meta exist or are correct), then if things don't check out, you can set the post status back to "pending", which in effect overrides the Publish button. The ...


5

Hi @NetConstructor: FullCalendar is a nice find. Looks to me like you'll need to write a shortcode (which I show how to do here): Adding an Archive of Posts to the Navigation Menu in WordPress 3.0 And then generate the code to call the FullCalendar within the shortcode. After that you'll need to write code to generate a Javascript array or have it ...


5

I'm not sure about a plugin, but you can definitely add custom meta that allows you to set the event date, or even an event daterange (my preferred way of handling this is an event date and a duration, cuts down on calculations in the backend and is generally easier to understand, but ymmv). This allows you to keep your post dates in order while maintaining ...


5

Check out wp_cron and the cron_schedules filter. There are lots of good tutorials out there like this one from WPTuts or this one from Viper007Bond.


4

I'm using jquery tools validator $("#publish").click(function(event){ //validating var inputs = $(".TTWForm-container :input").validator(); //check if not valid stop loading ajax icons if( ! inputs.data("validator").checkValidity()){ event.stopImmediatePropagation(); } this code fired once publish ...


3

Adding the following code to your theme's functions.php file should do the trick: function feedFilter($query) { if ($query->is_feed) { $query->set('order','ASC'); $query->set('orderby','date'); } return $query; } add_filter('pre_get_posts','feedFilter'); Note: this will affect all RSS feeds. You could target more ...


3

Hi @Spencer B.: Funny, my client submitted a bug ticket for the events modules I wrote for this very issue the other day, and I just fixed it a few hours ago. Note that my example uses a Custom Post Type of 'event' which is very useful to be able to differentiate logic for Events distinct from Posts. If you must use regular Posts you'll need to somehow ...


3

You may wish to consider Event Organiser as well (disclaimer: I'm the developer). It's completely free, supports reoccurring events and shortcodes & widgets for displaying them in lists and calendars. (I realise this is an old question, but it may be useful to others)


3

check out EventExpresso (http://eventespresso.com/) which has both a paid and a free version. That should do everything you need it to.


3

Hi solomongaby: Forms For the form I would suggestion using GravityForms. It's super easy to use to design and post a form, and here's an example form we made for requests to be a presenter. GravityForms is $39 per server but if you ask they may be willing to give a charity a free copy? Registration I would probably just recommend using EventBrite like ...


3

There aren't currently any shortcodes for venue information (address, postcode, other meta etc). However, you can copy the single-event.php template (find it in the templates directory of the plug-in) into your theme and edit it there to include venue information via provided template functions: Available functions When used inside the loop, you don't need ...


2

You're enqueuing a specific version of jQuery. It's better to enqueue the version that comes with WP, like this: wp_enqueue_script('jquery'); in a function run by the hook wp_enqueue_scripts


2

I've modified above function somewhat function get_event_list( $latest = true, $order = 'ASC', $return = false, $year ) { // Pass year i.e $year $enddate = strtotime($year."-12-31"); // year's last date $startdate = strtotime( ($year-1)."-12-31"); year's first date $yesterday = array($startdate, $enddate ); // Fetch posts between these dates ...


2

I'll preface this by saying I have no experience with or knowledge of the plugin, this answer is based entirely on a 30 second scan of the code that registers the post type for use in the plugin, so you may uncover issues with this solution that my quick clicking of a test event didn't catch. With that said... The basic gist of this is to unset the post ...


2

This one might do the trick for you... http://wordpress.org/extend/plugins/really-simple-events/ - low functionality but easy to install and make simple events. It seems only site admins can add events though.


2

You can create a new plugin with the mce_external_plugins filter.. and link it to a js file. Then, in that file you can do your processing. function tinymce_init() { // Hook to tinymce plugins filter add_filter( 'mce_external_plugins', 'tinymce_plugin' ); } add_filter('init', 'tinymce_init'); function tinymce_plugin($init) { // We create a new ...


2

I believe the meta_query part should be a nested array, so your query should be like this: $query = new WP_Query( 'post_type' => 'post', 'orderby' => 'meta_value', 'meta_key' => 'ENDS', 'order' => 'ASC', 'posts_per_page' => -1, 'meta_query' => array( array ( 'key' => 'ENDS', ...


2

Even I placed a lot of questions back to your question, I would like to share the following idea: This basically sounds to me that users are subscribing to a post (maybe of a custom post type and with a custom taxnomoy). So to replace the comment form with a subscription form and to use comment "subscriptions" as "post subscriptions". That for re-using the ...


2

This one is the best I know of: Event Calendar / Scheduler The main features include: Day/Week/Month/Year/Agenda view + ability to create custom view Drag-n-drop support to configure event date and time Customizable appearance Single/multi-days events (daily, weekly, monthly or yearly basis) Customizable time scale Recurring events Multilingual


2

I also got a blog with custom fields regarding event. Here is the query I used in combination with the query_posts() function: query_posts($query_string . "&meta_key=event_date_end&meta_compare=>=&meta_value=".date('Y-m-d')."&meta_key=event_date_start&orderby=meta_value&order=ASC"); It will select all posts with a custom field ...


2

You can modify the standard WordPresss user registration form to require more data than the usual username + email address. add_action('register_form','my_show_extra_fields'); add_action('register_post','my_check_fields',10,3); add_action('user_register','my_register_extra_fields',10,3); function my_show_extra_fields(){ ?> <style> ...


2

Or use BuddyPress, has all this features and more after customizing


2

If I understand right your current logic is "events later than today" but you want to adjust it to "events today or later". This should be simple by adjusting comparison rule to from "more" to "more or equal": 'meta_compare' => '>=',


2

Here's a plan: Store the dates as individual custom fields with the same meta_key (ex: start_date) JOIN the wp_posts table with the wp_postmeta table, without a GROUP BY (to allow the same event to appear more than once) ORDER BY start_date The full query would look like this: SELECT wp_posts.*, meta_value AS start_date FROM wp_posts INNER JOIN ...


2

There two things that you need to do to make this happen: 1) Create metadata for the data for each event 2) Query for the posts using meta_query For #1, you need to add a metabox that allows the user to add a date for the event. This data should be stored as metadata using the add_post_meta or update_post_meta. I would encourage you to read about adding ...


2

I've used cforms II for that in the past. It's way more than what you need, but it's really powerful, so it means only one plugin to implement the subscription, contact, and other forms within the site http://www.deliciousdays.com/cforms-plugin/


2

Easiest way would be replacing the core RSS widget with a custom job that reverses the feed items before display. Something like: <?php foreach (array_reverse($feed->get_items()) as $item): ?>


2

First off, I just want to say AMEN to this question. There are not a lot of good, reliable calendar plugins out there. I've struggled with this myself. Judging by your list of event calendars you've tried, you've just about exhausted the list of decent to reputable plugins. I honestly think what you're looking for in a plugin, you're not going to be able to ...


2

I've been able to solve this myself. My entire code for registering the CPT: <?php add_action( 'init', 'events_post_type_register' ); function events_post_type_register() { $post_type = "events"; $labels = array( 'name' => _x('Events', 'post type general name', 'project_X'), 'singular_name' => _x('Event', 'post type ...



Only top voted, non community-wiki answers of a minimum length are eligible