Tag Info

Hot answers tagged

3

You're getting the error because the Facebook and All In One Event Calendar plugins are both declaring the fb_admin_dialog() function, but PHP only allows a function to be declared once. To fix the immediate problem, log in to your server with S/FTP and rename the wp-content/plugins/all-in-one-event-calendar directory to something like ...


3

Depending on what you want you'll need to use the the_widget function, I believe there are few examples of using it in the WordPress twentyeleven theme as well.


2

Try this: First add this functions to your theme's functions.php //this will call the download function if needed function Ical_download() { global $wp; global $wp_query; if (isset($wp->query_vars["ical_download"])){ event_list_iCal(); exit(); } } add_action('template_redirect', 'Ical_download'); //this will add ...


2

This is entirely based on Event Organiser (a plug-in I've developed). The code is lifted almost straight from the source but with alterations. As such I've not tested the code as given. Step 1: Create a feed This is simple: add_action('init','wpse63611_add_events_feed'); function wpse63611_add_events_feed(){ ...


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

Ok so hope this helps someone. Unless you want to query the database directly, the trick is to include the following: $event = Ai1ec_Events_Helper::get_event($post->ID); thereafter you can retrieve the variables, for example: <?php query_posts('post_type=ai1ec_event');?> <?php while ( have_posts() ) : the_post(); ...


2

I would use WordPress' feeds. You can create your own feed with add_feed. You specify a callback and this callback is responsible for displaying the output. Creating a feed add_feed('my-events','wpse56187_ical_cb'); wpse56187_ical_cb is that responsible for getting the events (use WP_Query), looping through them and printing the ICAL fields. ...


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

It may be time to give up WordPress.com. There is little day to day difference in managing a self-hosted version, but there is a world of opportunities that will open with a few well selected plugins. You mentioned you're volunteering for an organization. If the issue is paying for hosting, Dreamhost and HostGator offer free lifetime hosting for US based ...


2

You can put a custom function into your functions.php to show a calendar with CPTs. Details here.


2

You might be able to rip apart the plug-in using details from here, perhaps?


2

Most likely your server does not have access to cURL. With most hosts, you can enable this with php.ini.


1

Try this: http://wordpress.org/extend/plugins/hebrew-events-calendar/


1

You can use the function do_shortcode in your template to output the content generated by the shortcode that My Calendar provides for listing events. For an example, to show a list of upcoming events use something like: <?php echo do_shortcode('[my_calendar_upcoming before="3" after="3" type="event" fallback="No events coming up!" category="General" ...


1

You were starting on the right track but you had several bits of WordPress hookage you still needed to add. An approach I like to use is to encapsulate a call to get_calendar() in a class so we can use the low-level 'query' hook but only use for it for the one call. So I wrote up an example which you can drop into your theme's functions.php file (or in a ...


1

I know this does not meet your requirement of supporting Paypal and Authorize.net, but it does support Eventbrite, so it may be worth looking into: The Events Calendar


1

The problem is that the plugin only handles the calendar part, and not the archive query. What you need to do: Change the main query on archive pages if the post_type argument is present, eg: http://localhost:8888/wp/?m=201105&post_type=candy : add_filter('pre_get_posts', 'atom_include_cpt_in_archives'); function ...


1

Echo your output in your AJAX callback function Exit PHP after you echo your output using exit; Since you've localized the ajaxurl variable, use it in your AJAX request Pass action : 'my_special_action' into your AJAX request Whatever action you use, use the same for both nopriv and normal AJAX hooks Here's how your AJAX call should look: function ...


1

We are using Google apps/calendar at our work and it works nice. Would that be an option?


1

Basically you have to write a piece of php code to read your events and write it out in ics format. (Just like writing out a template but a bit different). Wordpress has actions/functions to add a feed and provide a hook that produces the text. You also need to make sure that you adjust the query to list all of the events. To ensure that your feed is ...


1

You might find this plug-in useful: http://wordpress.org/extend/plugins/event-organiser/ Full disclosure: I authored this plug-in You can assign permissions (to create, edit, publish events etc) to roles in the plug-in the settings. It has an admin-side calendar, and calendars for the front end. So it seems to do everything you ask for.


1

I would do this with a custom post type, probably "Events" in your case, custom (probably hierarchical) taxonomy, and custom postmeta. You can register the post type with only the capabilities you need, then extend those capabilities with custom metaboxes for the custom postmeta. This custom meta is going to be your event date/time, don't use postdate for ...


1

I don't think it's a weird problem, but it is a fairly complex requirement and plug-ins are usually built to target a wide as audience as possible. The problem is that this can mean more complex features are left out because there are not needed by the majority of people and would simply clutter the user interface. When plug-ins create a ...


1

HereĀ“s something to get you started. Adapt the code below to your needs Create an init.js file with notepad and paste your code in there Save it in a logical place your theme folder (the JS directory for example) Register and enqueue this file (make sure to load it after jquery) Datepicker set up: /* ...


1

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.


1

Write your required javascript, then use this code to display it on the page, it ensures that the script is only included if the calendar is displayed add_filter('get_calendar', 'add_calendar_scripts'); function add_calendar_scripts($content) { add_action( 'wp_footer', 'output_calendar_scripts', 11); return $content; } function ...


1

Third choice: I suggest using jQuery to handle this. <script>$('a[title]').attr('title', '');</script> will remove all anchor titles on the page. You could put that in the page template or build a widget that echos it.


1

Anything that comes out of this query-- $event = Ai1ec_Events_Helper::get_event($post->ID);-- will need the $event-> part. That is how you access data from an object. That is just pure PHP. I don't know why some of the values in that answer, like $contact, are not prefixed with $event-> but I am assuming those variables do not come from from that ...


1

Assuming you mean the default calendar widget, you really have two choices: Wildly complicated regex Or make your own widget. I would opt for #2, the meat of which is actually the get_calendar function. Clone that function and alter the dates as you need to. This is assuming that there is no proper localized version of WordPress for your language-- see ...


1

Yep. You can add a meta_query parameter to methods that query posts, such as WP_Query. This one below gets a custom post type between two dates (which are custom fields created by 'advanced custom fields' plugin) and sorts on one of these dates: $args = array( 'post_type' => 'event', 'posts_per_page' => '-1', 'post_status' => array( ...



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