bigmitch
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form DB] exported file nameThat’s what I thought. There’s nothing to hook into or classes to extend in a separate plugin?
Forum: Plugins
In reply to: [LightPress Lightbox] Caption not showing upThanks for the reply so quick. I though everything was correct… the client has just done a 180 and decided they no longer want a lightbox. It was most likely a conflict with one of the other plugins.
I’m not sure how I would use the conditionals to show single day events form category #2 and the first occurence from the recurring events (like the ‘recurring’=>1 function).
I can get each group separately but can’t figure out how to merge them. I tried array_merge, but just got errors saying Argument #1 and #2 are not arrays.
I was trying to use:
$recurrers = em_get_events ( array('limit'=>0,'recurring'=>1,'scope'=>'customfuture') ); $specials = em_get_events ( array('limit'=>0,'category' =>2,'scope'=>'customfuture') ); $merged_query_args = array_merge( $recurrers, $specials ); $merged_query = new WP_Query( $merged_query_args );
then move on to the loop and sort by event_start_date, style, etc.
I looked at that but didn’t see a way to get it to work for what I want.
That doesn’t work as the single day movies (which also have category #2 assigned to them) are not recurring events.
Setting ‘recurring’=>1 only shows recurring events (the first instance of) but no single day events. Adding the 2 doesn’t pull from the category, I think its a yes or no setting.
I looked at that template and wasn’t sure where to add code to tie in the AJAX. The code I came up with gets the links outputted right but they don’t jive with the AJAX to pull in the new content.
Forum: Fixing WordPress
In reply to: Comparing timestamps in WP_QueryAs Peter Griffin would say… Freakin’ Sweet!. Thanks, that seems to work.
Forum: Fixing WordPress
In reply to: Comparing timestamps in WP_QueryYes, after the event info is entered in Filemaker, it shows up as a post in WP. All event details (dates, prices, instructors, etc.) show up under the post in Flutter write panels. The Beginning Date field name is ‘class-begdate’.
I did get into the WP DB, and found this for something that was just added, it looks like it actually is storing the date as YYYY-MM-DD:
INSERT INTOaccr_postmeta
VALUES (68130, 3362, ‘class_begdate’, ‘2012-01-22’);So maybe it can be what you posted earlier but use ‘class_begdate’ as the meta_key?
Forum: Fixing WordPress
In reply to: Comparing timestamps in WP_QuerySorry, but how do I find that info?
Forum: Fixing WordPress
In reply to: Comparing timestamps in WP_QueryThe Filemaker DB writes the entry’s data to the WP DB. After that, when you go into the WP dashboard, the entry is present as a post.
The post’s title, body copy, catagories and meta (begin/end dates (in MM-DD-YYYY format), prices, times, instructors, etc.) all come from Filemaker. The meta populates Flutter write panels.
The two variables I’d need to compare are (in addition to the posts_per_page, etc.):
(1) today’s date
(2) entry’s beginning date (which would come from the entry’s meta, just redefined to match today’s date format).So it would be comparing two variables -or- “assigning” the entry’s beginning date variable as the ‘meta_key’ to compare against today’s date (‘meta_value’).
Forum: Fixing WordPress
In reply to: Comparing timestamps in WP_QueryI’m still having a problem as $begtime is not meta from the post, its a defined variable… All posts are originally entered into a Filemaker DB which then writes to the WordPress DB. The date meta in the WP DB is in j-m-Y format, not good for comparing. $begtime just redefines the date meta into Y-m-d format, so it can be used for comparison.
So how would I compare the two variables (also keeping the posts_per_page, etc.)? Or can a variable be used in ‘meta_key’?