greenzilla
Forum Replies Created
-
Forum: Plugins
In reply to: [Publish To Apple News] Too many thumbnail sizesWhat kind of issue are you seeing using this bit of code?
I’m not actually seeing any issues. Images are showing up in Apple News. I know the plugin is using an array of images sizes to do things and that array still exists with this code in place; the image sizes are simply just not registered in Wordpess with this bit of code. So, CHEERS TO THE DEVELOPER for writing clean code that we could actually adjust functionality with an action! Just keep in mind to remove this with any updates ??
Forum: Plugins
In reply to: [Publish To Apple News] Too many thumbnail sizeswe manage a large site with a very large image library (well over 60,000).
If you are not already, we upload images into year/month/day directories. We upload about 50k images a year. This directory structure helped a bit. It did cause issues with xmlrpc uploads though and I don’t remember what the actual issue or fix was.
function upload_dir_filter($uploads){ $day = date('d'); $uploads['path'] .= '/' . $day; $uploads['url'] .= '/' . $day; $uploads['subdir'] .= '/' . $day; return $uploads; } add_filter('upload_dir', 'upload_dir_filter');
Forum: Plugins
In reply to: [Publish To Apple News] Too many thumbnail sizesThis will remove the registered image sizes created by the plugin. Be aware, it may cause issues with what is generated for Apple News. However, I am still seeing images in Apple News using this bit of code.
function wp_loaded_callback(){ global $_wp_additional_image_sizes; foreach($_wp_additional_image_sizes as $k => $v){ if(stristr($k, 'apple_news')) remove_image_size($k); } } add_action('wp_loaded', 'wp_loaded_callback');
Forum: Plugins
In reply to: [Publish To Apple News] Too many thumbnail sizesThis is also a problem for me but for another reason. We use responsive images and this plugin generates odd cropped images that are showing up in our srcset.
- This reply was modified 7 years, 10 months ago by greenzilla. Reason: Removed unnecessary snark about Apple
Forum: Plugins
In reply to: [Instant Articles for WP] Class naming conflictI do not. The google library I am using, that had a conflict, was updated with namespaces and fixed my particular issue. Still, this issue should be addressed with this plugin.
Forum: Plugins
In reply to: [Publish To Apple News] Publish button/XMLRPC does not publish to Apple NewsI dug a little deeper. Two things that appear to have fixed my issues.
As for the publish button not publishing:
Line 58 in class-push.php schedules a one-off event to be run immediately. This appears to have not been working. I added 60 seconds to time() and I was able to see the chron job in the wp chron queue. I suspect the chron job was not actually getting run (we are manually running the chron fyi).As for xmlrpc, our xmlrpc user was an editor and did not have the ‘manage_options’ capability as required on line 55 in class-admin-apple-post-sync.php. I simply hooked into the supplied filter ‘apple_news_publish_capability’ [Thanks for the filter!] and changed the capability to ‘edit_pages’. We use xmlrpc b/c a third-party script uses it.
To answer your question: auto sync and async are both set to yes.
Plugin version: 1.5.3
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Lots of crons being scheduledI did hack the plugin to fix this. Changed line 80 in file lib/utility/class-ai1ec-scheduling-utility.php from $existing[‘freq’] to $existing[‘recurrence’]
Forum: Fixing WordPress
In reply to: Is it possible to create an application to fill a database?It is definitely possible but I’m sure a programmer would need to write custom code for this.
Forum: Fixing WordPress
In reply to: delete duplicated imageProbably not.
Forum: Fixing WordPress
In reply to: [Contact Form 7] Contact Form Date IssuesI assume the form is using jquery ui datepicker. Have you tried using the console (f12, console tab) in ie to see if there are any javascript errors?
Forum: Fixing WordPress
In reply to: This is somewhat embarrassing, isn’t it?Add a post and mark it as sticky. I assume your theme is trying to display sticky posts on the home page. It looks like there are very few posts in your site, most likely not sticky.
Forum: Fixing WordPress
In reply to: Wp 3.8 backend is screwed up and hard to use, (see pic)Have you tried disabling all plugins and switching to default theme?