mdmoreau
Forum Replies Created
-
Forum: Plugins
In reply to: [Autoptimize] Combine Google FontsSounds good – will try to take a look in the next couple of weeks.
Forum: Plugins
In reply to: [Autoptimize] Combine Google FontsOkay I’ll check that out – was a little concerned that it hadn’t been updated in over 2 years and seems to have a lot of issues.
For what it’s worth you can see WP Rocket’s implementation over at https://github.com/wp-media/wp-rocket/blob/master/inc/front/minify.php. It doesn’t seem too complex, but I’m not sure how well it would work with your existing setup.
Would you be interested in a PR for this feature? Wouldn’t mind taking a crack at it if it’s something you’d consider. Thanks!
Forum: Plugins
In reply to: [Quick Page/Post Redirect Plugin] Metabox Context and Priority FiltersJust tested it out, and it seems to work perfectly – thanks!
Forum: Plugins
In reply to: [Quick Page/Post Redirect Plugin] Metabox Context and Priority FiltersAwesome – thanks!
I know this is an old thread, but figured I’d post what I came up with in case it helps out someone else.
get_posts(array( 'post_type' => 'event', 'posts_per_page' => 2, 'orderby' => 'meta_value_num', 'meta_key' => '_start_ts', 'order' => 'asc', 'meta_query' => array( array( 'key' => '_end_ts', 'value' => date('U'), 'compare' => '>' ) ) ));This will only pull in posts whose end time custom field is greater than the current date.
Perfect – thanks!
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Map FormattingYeah I’ve used the template system to modify a few other things – works really well. Just figured it might be a good suggestion since I haven’t seen any other inline CSS elsewhere in the plugin and thought this spot may have been an oversight.
For people who aren’t comfortable getting into their theme/plugin files like that, using a class would make the area much easier to target. They could then override with CSS instead of trying to sort out the templating system. This would also make it easier to keep styles across installs/themes, as the custom CSS could be transferred without having to worry about replicating the template override files.
Do you mean under Appearance > Widgets? It seems like when you set the formatting there it only applies to that one widget instance. I’d like to be able to setup a different template within my theme to override the default structure.
I can see what would need to change in the widgets/em-events.php file, but ideally I’d like to avoid editing any of the plugin files directly. In the defaults array there’s a key for ‘format’ – wondering if there’s a simple way to change that through my separate theme files.
Forum: Plugins
In reply to: [EWWW Image Optimizer] WP Engine SupportAh okay gotcha – actually noticed that but wasn’t sure if it was the main problem. Appreciate the quick response!
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF®)] Plugin Site is offlineYeah I think the author mentioned that he is moving web servers, so the site may be down for a little while. Here is my understanding of some of the basic functionality (from memory):
Return a field:
get_field('field_name')Echo a field:
the_field('field_name')Those are the very basics – is there something specific you need to do? It’s also worth noting that uploaded images are just stored as a URL, so you’d call them like:
<img src="<?php the_field('field_name'); ?>" alt="" />Hopefully that helps! It’s really a great plugin, and once the site is back up you shouldn’t have any problems learning how to use it.