Tim Bowen
Forum Replies Created
-
The UPCOMING functionality has this same problem. Here’s a custom loop that shows only upcoming events (even if they recur beginning in the past):
<?php // Upcoming Events Loop $time = current_time( 'timestamp' ); $now = mktime( 0, 0, 0, date( 'n', $time ), date( 'd', $time ), date( 'Y', $time ) ); $event_future = array( 'post_type' => 'sc_event', 'posts_per_page' => 99, 'meta_key' => 'sc_event_date_time', 'orderby' => 'meta_value_num', 'order' => 'asc', 'post_status' => 'publish', 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'sc_recur_until', 'value' => $now, 'compare' => '>=' ), array( 'key' => 'sc_event_end_date_time', 'value' => $now, 'compare' => '>=' ) ) ); $events = get_posts( apply_filters('sc_event_list_query', $event_future) ); foreach ( $events as $post ) : setup_postdata( $post ); ?>Forum: Fixing WordPress
In reply to: Remove the new dns-prefetch codeThank you Jacob, we’re already using this to remove emoji:
// Remove emoji script remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'wp_print_styles', 'print_emoji_styles' );
And the additional of your code helps remove this extra dns-prefetch:
add_filter( 'emoji_svg_url', '__return_false' );
Thank you!
Forum: Fixing WordPress
In reply to: Remove the new dns-prefetch codeThank you Jacob, that worked perfect.
I’m fine using dns-prefetch for asset related URL’s, but it seems like the
s.w.orglink is unnecessary since it’s not related to any JS or CSS on the website.Forum: Fixing WordPress
In reply to: Remove the new dns-prefetch codeI’m also trying to remove this and tried to remove the filter like this:
remove_action( 'wp_head', 'dns-prefetch' );It didn’t work though. Please let me know if you find a solution.
It looks like this is a known bug:
https://core.trac.wordpress.org/ticket/37694Forum: Plugins
In reply to: [WP Broken Link Status Checker] Additional Post TypesThank you Pau, that fixed it for our custom post types. The only one that didn’t work for was the Events post type since we’re using Pippin’s Plugins “Sugar Events Calendar” which does not add priority to actions (and therefore does not work with your plugin).
Please let me know when the next version is out and I’ll be happy to test it for you.
Forum: Plugins
In reply to: [WP Broken Link Status Checker] Additional Post TypesWe’re actually calling these post types from the theme functions.php file like so:
function animal_post_type() { register_post_type( 'animals',...
add_action( 'init', 'animal_post_type');Is there a different way we should be calling them?
Forum: Plugins
In reply to: [Broken Link Checker] Deadlock foundI’m having this same
Deadlock found when trying to get lockerror when trying to run Broken Link Checker.Anybody have a fix for this?
Forum: Plugins
In reply to: [Sewn In XML Sitemap] Change ?Thank you, this works perfectly!
Forum: Fixing WordPress
In reply to: WordPress 4.4 update breaks wp_nav_menu() layoutThank you rodsazo, this “fix” is perfect.
Forum: Fixing WordPress
In reply to: WordPress 4.4 update breaks wp_nav_menu() layoutI’m having this same issue. Any fix yet?
Forum: Plugins
In reply to: [Gravity Forms + Custom Post Types] Non-static method errorThank you Ryan!
Forum: Fixing WordPress
In reply to: Turn Off New User Registration Email NotificationsI’m also looking for a solution for this. Any simple snippet I can drop in functions?
Forum: Reviews
In reply to: [Editorial Access Manager] Should be built into core!Nice, this is looking great! Any idea when these updates will be pushed into the WP repo?
Forum: Reviews
In reply to: [Editorial Access Manager] Almost exactly what I neededThanks for the quick reply, the dev version is perfect for what we need!
The big thing we were missing is that you have to have the new role as something below Editor or Author in order to not give full page access by default. Setting up a new role or using Contributor works like a charm!
Forum: Reviews
In reply to: [Editorial Access Manager] Almost exactly what I neededdid you find another plugin that fits your needs? We’re in a very similar situation and while it’s a pain to go through and add roles for all 107 pages, it’s only about 30 minutes of work so it’s not terrible. I’m really curious if there is another solution which works better for pages with a lot of sites though.
Thanks!