Sigil
Forum Replies Created
-
Forum: Plugins
In reply to: [Event Organiser] How are events generated in admin calendar view?Yes!!!!! Yay!!!! Perfect, thanks so much!!!!!
Forum: Plugins
In reply to: [Event Organiser] How are events generated in admin calendar view?Well, I guess specifically I’m wondering what I should change “cf_startdate” to in my above code – that’s the meta key for the event’s start date, and I’d like to be searching for all dates the event falls on.
Thanks for sorting through this with me! I don’t have any developers to talk to about it >_<
Forum: Plugins
In reply to: [Event Organiser] How are events generated in admin calendar view?Oh, but, I am able to query events just fine. I am able to return events based on their start date. How is your admin calendar able to show events based on their recurrence factors? I would like to come up with a way to query an event based on each day it falls on. Let me know if I’m not making sense and I’ll try to explain it better :p
Forum: Plugins
In reply to: [Event Organiser] How are events generated in admin calendar view?When a user creates an event in the frontend, she has three date options, similar to what you have created in the backend: start date, end date, and schedule end date/end of recurrence. As I mentioned, I’m only querying the start date at the moment (which I want to change to all dates the event falls on), which I store in a post meta key/value pair when they submit their event, called “cf_startdate”. On the search page, when someone searches for a date and location, I pass that info in the URL and GET on the result page. The date info is passed into a meta_query, and another plugin I’m using handles the location data:
$originaldate = $_GET[('eventdate')]; $newdate = date("d-m-Y", strtotime($originaldate)); $tax_args = false; $meta_args = array( 'relation' => 'AND', // Optional, defaults to "AND" array( 'key' => 'cf_startdate', 'value' => $newdate, 'compare' => '=' ) ); //Get current page number $this->form['paged'] = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; //query args $this->form['query_args'] = array( 'post_type' => ( isset( $_GET['gmw_post'] ) && !empty( $_GET['gmw_post'] ) ) ? gmw_multiexplode( array( ' ', '+' ), $_GET['gmw_post'] ) : $this->form['search_form']['post_types'], 'post_status' => array( 'publish' ), 'tax_query' => apply_filters( 'gmw_pt_tax_query', $tax_args, $this->form ), 'posts_per_page' => $this->form['get_per_page'], 'paged' => $this->form['paged'], 'meta_query' => apply_filters( 'gmw_pt_meta_query', $meta_args, $this->form ), 'ignore_sticky_posts' => 1 );
[Marking as Resolved]
Sorry, this was my bad. Had a space in my field name.
Forum: Plugins
In reply to: [Event Organiser] Viewing Private Events on Full CalendarHi Stephen, Thanks a lot for the speedy response. Unfortunately updating and viewing as an admin didn’t do the trick. I’m not too clear on the cache issue, but I had tried multiple solutions for that possibility, like clearing my cache and viewing as new users and user roles. If it is possible to view private events on the calendar, and does not require an alteration to the plugin code, then I am very curious for the solution…
Could it have anything to do with the version I’m using – 2.8.2?Forum: Plugins
In reply to: [Event Organiser] Viewing Private Events on Full CalendarI’m sorry, to clarify, the [wpuf_dashboard post_type=”event”] shortcode is a list of events I have created with the WP User Frontend plugin. Thanks!
Forum: Themes and Templates
In reply to: Recurring div in or outside the_content?Silly me… Of course, just
<article>
<div id=”contact-info”>
</div>
<div class=”entry”><… the content() —></div>
</article>Forum: Fixing WordPress
In reply to: Recurring div in or outside the_content?Silly me… Of course, just
<article>
<div id=”contact-info”>
</div>
<div class=”entry”><… the content() —></div>
</article>