Thijsonline
Forum Replies Created
-
So on an event page of an event taking place in Cincinatty I’d like to show a bullet list with links to
-Here are the top museums in Ohio
-Nature reserves in OhioSo basically introducing a custom piece of HTML (link block) depending on the region that a location or event is located in.
Hi @angelo_nwl by any chance do you have an indication of when this will be fixed?
Great! Thanks for letting me know!
Hi @timrv any chance you can see something wrong with the page configuration?
Hi @timrv you can find the example on site[dot]wattedoenin[dot]nl
- This reply was modified 6 years, 4 months ago by Thijsonline.
Notice the same issue reported by different users w/ the same enable ajax=1 suggestion.
https://ww.wp.xz.cn/support/topic/pagination-not-working-properly-9/
https://ww.wp.xz.cn/support/topic/paginator-homepage/Have now gone through 1 – 6 below and the problem persists unfortunately.
1. Disable all other plugins
2. Change theme to any twenty-series theme
3. Activate only Events Manager and (Events Manager Pro in case you have)
4. Test the issue again
5. If it works as it should, Then activate plugin one by one until you find the cause.
6. Do the same with theme if everything works when all plugins are enabled.Ok thank you. One thing I’ve noticed by using Query Monitor after updating to 5.9.7.1 is that it gives a warning about the below custom filter I have in place. Specifically the .wp-postmeta. part of it (undefined constant – assumed ‘wp_postmeta’). Is the below filter incorrectly formatted by any chance?
add_filter( 'em_locations_build_sql_conditions', 'my_em_locations_events_build_sql_conditions',1,2); function my_em_locations_events_build_sql_conditions($conditions, $args){ global $wpdb; if( !empty($args['custom']) ){ $sql = $wpdb->prepare("SELECT post_id FROM ".wp_postmeta." WHERE meta_value=%s AND meta_key='custom'", $args['custom']); $conditions['custom'] = "wp_em_locations.post_id IN ($sql)"; } return $conditions; }Unfortunately had to delete the WP Safe Mode plugin as it threw a redirect error (filled in my IP address in the plugin, perhaps I shouldn’t have).
Had the same problem when upgrading to 5.9.6 – navigating to the URL with ?pno=2 in it actually rendered a page with all sorts of WP posts and event listings in it. Had to revert to 5.9.5 to get it working again.
Hi Josh,
Thanks you for the clear response. Have just added this to the functions.php and it seems to do the trick indeed.
It took me forever to realize this was more straightforward (waaay more) than I could have imagined. Have posted an article about it, hope that helps anyone else struggling with the same.
- This reply was modified 7 years, 2 months ago by Thijsonline.
Cool thanks. I’ll make sure to dive into the conditional placeholder option. Looks like the right place to start!
Hi! Thanks for that. In this case I’m using the shortcode [events_list] and in the resulting list I’d like to insert a banner image between the 5th and the 6th event.
I’m afraid that won’t work through the formatting settings?
That makes sense, thanks for the quick reply. Will work with what’s offered. Cool plugin by the way!