Need to have an archive widget which organizes and displays a custom post type using a custom date field

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( … Read more

Storing temporary data for a custom post type

If you’re using custom post types, i’d save those date entries as post_meta entries (http://codex.wordpress.org/Function_Reference/add_post_meta). So if your client clicks on a date, you start an ajax request to your plugin/theme file to add or remove a meta entry. you can create one meta_entry named _availability for example and save all dates there (you can … Read more

display future posts in date page

You can alter the query with pre_get_posts before it’s run to include future posts: function wpd_future_date_archives( $query ){ if( $query->is_date() && $query->is_main_query() ) { $query->set( ‘post_status’, array( ‘publish’, ‘future’ ) ); } } add_action( ‘pre_get_posts’, ‘wpd_future_date_archives’ ); The posts won’t behave the same as published posts though- they have no pretty permalink until they’re published.

Single Events as Sub-Page to Main Calendar Page

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 … Read more

Can’t access site after plugin activation

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 all-in-one-event-calendar-temp; that will deactivate it … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)