debsch
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display posts using post IDs in an array?Solved using
post__in$myarray = array_unique($result, SORT_NUMERIC); print_r($myarray); query_posts( array( 'orderby' => 'ID', 'post__in' => $myarray, ) );EDIT….. that’s not working for me. Any ideas where I’m going wrong?
THANK YOU WORDPRESS and thank you ME!
12 months later and I had completely forgotten how/where to edit the events list page. So thanks for the reminder!
🙂Forum: Plugins
In reply to: [Pronamic Google Maps] Put post title & location in bubble description?Works beautifully THANKS!
… and to add the post title i’ve added
get_the_title()to your code…/** * Filter snippet */ function prefix_pronamic_google_maps_item_description( $description ) { global $post; $description = get_the_title().'<BR>'.get_post_meta( $post->ID, '_pronamic_google_maps_address', true ); return $description; }Forum: Plugins
In reply to: [Pronamic Google Maps] Marker Box Not Showing on Page LoadDitto! Me too. I’d like this too.
Forum: Fixing WordPress
In reply to: Using URLs and AJAX to pre-select a category on edit-postAlso looking to do this.
To preselect a category on a new post as users may not select a category and the default category wouldn’t be correct. I’d like to have a link (well lots of links) – add new post – and the new post page has the correct category already selected.Have googled and searched plugins but no luck.
Any help out there?Forum: Plugins
In reply to: [Meta Box] Quick Edit not working (and problem located)I click on “Quick Edit” and nothing happens.
Then when I go to edit page and try change visibility, I click on ‘edit’ next to word ‘private’ and page jumps but nothing else happens.
This is after updating wordpress this morning. Have a backup but am hoping for a fix instead.Forum: Plugins
In reply to: [Category Subscriptions] [Plugin: Category Subscriptions] Custom taxonomies?No… after many hours I gave up and used a MailChimp plugin instead.
Can anyone help with filtering out past events and only displaying future events in this custom scope?
So (thanks google) this is what works for me…
add_filter( 'em_events_build_sql_conditions', 'unique_em_scope_conditions',1,2); function unique_em_scope_conditions($conditions, $args){ if( !empty($args['scope']) && $args['scope']=='futureunique' ){ $conditions['scope'] = " (recurrence_freq = 'monthly' OR recurrence_freq IS NULL)"; } return $conditions; }Still need help with filtering out past events and only displaying future events in this custom scope.
Ok, 3 months later, *now* I have some time…
1. I’ve added this to my functions.php
add_filter( 'em_events_build_sql_conditions', 'unique_em_scope_conditions',1,2); function unique_em_scope_conditions($conditions, $args){ if( !empty($args['scope']) && $args['scope']=='futureunique' ){ $conditions['scope'] = " recurrence_freq!='weekly' AND recurrence_freq!='daily'"; } return $conditions; }2. I’ve changed the events manger settings to use shortcodes instead of one specific page to display events
3. I’ve created a new page and added this title & shortcode to the page
Unique events [events_list scope='futureunique']The resulting page does not show daily/weekly events it only shows monthly events.
Also, the resulting page does not show UNIQUE events because in the database ‘recurrence_freq’ for unique (one-off) events appears as NULL.
Could someone please help with:
1. The correct code to add here to display the entries that have recurrence_freq = NULL
$conditions['scope'] = " recurrence_freq!='weekly' AND recurrence_freq!='daily'";2. The code to add to display FUTURE events (that are not weekly/daily).
Of course if I figure it out myself in the meantime I will add the solution here. Thanks.
Thanks for the help. I can see how this would work. Haven’t got the time to try it out today but will mark this post as resolved.
Thanks for the reply. So you’re suggesting I create my own ‘scope’? One for recurring events?
Where in the DB will I find a field that says something like ‘event-type’ = ‘recurring’ or ‘event-type’ = ‘single’?
If I can find that, I’ll be able to just pull out the single events and put the recurring events on a separate page.
EM does events REALLY well, but not sure how it would fit your requirements if you want it to do something completely different.
Have you tried a search?http://wordpress.org/extend/plugins/collabpress/
http://wordpress.org/extend/plugins/active-directory-employee-list/
http://wordpress.org/extend/plugins/ez-staff-list/
http://wordpress.org/extend/plugins/wp-worker-catalog/Otherwise you may just have to write your own plugin and then of course publish it here at wordpress for the rest of us to enjoy!!
🙂Yes – Can I add also that the ability to INPUT coordinates on the ‘add event’ form would be very useful, especially for people in rural areas.
A few places here are either not found on Google maps (because it’s on a new street or a street name known only to locals) or are placed incorrectly on Google maps.
Being able to input coordinates would solve that issue and mark EXACTLY where the function/event is being held.
Perhaps because it doesn’t include custom taxonomies?
http://mysite.com/news/feed/ works for me but that is because ‘news’ is a POST category not an EVENT category. If I stick an EVENT category in there like http://mysite.com/music/feed/ I get nothing.