Ryan Hellyer
Forum Replies Created
-
Forum: Reviews
In reply to: [Unique Headers] ExcellentAwesome 🙂 I’m glad to hear you find it useful.
Forum: Reviews
In reply to: [Unique Headers] Great PluginAwesome. Glad to hear it works well for you 🙂
Forum: Hacks
In reply to: Taxonomy bugThanks!
If you really want separate taxonomies for your custom post type, why not create a custom one?Because there are some uses in sharing the same taxonomy. For example, you could have a tag cloud across multiple post-types.
Based on what John said, it looks like this won’t work very well though, so I’ll either need to split them up or deal with some weirdness I guess.
Forum: Plugins
In reply to: [SharePulse] Limit to past yearHere’s some code to limit this. This can be placed into a theme or plugin.
<?php /* * The SharePulse plugin is intended to work with an unlimited number of posts * But since it is attempts to process them all at once, this will not work as * intended with sites with enormous numbers of posts * * This function works around this limitation by limiting the number of posts. * * @param array $args The arguments * @return int The number of posts to process */ function sharepulse_limit_number_of_posts( $args ) { $args['posts_per_page'] = 1000; return $args; } add_action( 'sp_get_posts_args', 'sharepulse_limit_number_of_posts' );It may be sensible to change the default value in the core plugin though, as at least with 1000 posts it will probably work, whereas with an unlimited number of posts it will simply fail on huge sites.
Iterating through in sections would be even better. That way it could process them in batches of 100 or so to avoid hammering the server too aggressively.
Many services such as WordPress.com VIP will actually disallow anything which attempts to use a post count of more than 100 due to the risk of excessive server load, so even 1000 is quite high.
Forum: Plugins
In reply to: [SharePulse] Limit to past yearOn line 164 of SharePulse.php you can edit where the argument for “posts_per_page”.
It is currently set to -1 which indicates an unlimited number of posts will be processed. This will likely bug out on most servers if there are many thousands of posts. I would be inclined to set that to something more sane, like 1000. This wouldn’t limit it to a specific time period, but would stop the plugin from processing an excessively large number of posts.
There is a filter called “sp_get_posts_args” which can be used to control this. I’ll prepare some code to provide control over this and post it here shortly.
Forum: Plugins
In reply to: [Reorder Posts - Quick Post Type and Page Ordering] Reorder doesn't workThat’s a difficult question to answer, since it totally depends on your exact setup.
The best advice I have is to start here:
http://codex.ww.wp.xz.cn/Class_Reference/WP_QueryForum: Reviews
In reply to: [Plugin Deleted] Nicely builtMaybe. It’s not so much of a request, but just letting you know. If I can make things work with a few filters, I might send some patches through. If not, I may need to fork, but I’d rather use your plugin as a base if possible. I haven’t been the best at updating my own plugin (upgrades in Joost’s plugin sometimes break it) and if you are planning to keep maintaining this thing, then that’d work much better for me 🙂 I intentionally never posted my own plugin on the dot org repo. because I knew I wasn’t going to be super reliable at maintaining it :/
Forum: Reviews
In reply to: [Plugin Deleted] Nicely builtI need to edit my per post meta description and title tags. If there’s a filter in there for it, I can just make an extension plugin perhaps.
I know of other projects which may require some more customisations like that too, but I’m not sure of the details right now.
Forum: Reviews
In reply to: [Simple Colorbox] No Settings = PerfectGlad to hear you appreciate the approach 🙂
Forum: Fixing WordPress
In reply to: [Menu] My menu is not showing after deleting pixopoint menu pluginThanks 🙂
Forum: Fixing WordPress
In reply to: [Menu] My menu is not showing after deleting pixopoint menu pluginThe plugin was developed (by me) long before menus were in core, so I unfortunately had nothing to allow it to fall back to, hence this problem occurred.
It’s nice to hear you upgraded though. The menu system in core is much better these days 🙂
Forum: Plugins
In reply to: [Unique Headers] Does/should Unique Headers work with custom posts?Austria seems like a nice place. I need to come visit it some time.
Forum: Plugins
In reply to: [Unique Headers] Does/should Unique Headers work with custom posts?BTW, your use of an array to process all the post-types would normally make sense within WordPress, but because of the way the media uploader module I’m using operates, that isn’t going to work unfortunately.
Forum: Plugins
In reply to: [Unique Headers] Does/should Unique Headers work with custom posts?Arghh, that’s what happens when I don’t bother testing things.
Try adding this to the end of that file:
$args['post_type'] = 'row'; new kdMultipleFeaturedImages( $args );I still don’t have time to test that, but it “should” work. If it doesn’t, let me know and I’ll take a closer look for you.
When the next version comes out, make sure you go check my blog (http://geek.ryanhellyer.net/) before upgrading, as I’ll post information about how to add support for more custom post-types there.
Forum: Plugins
In reply to: [Unique Headers] Does/should Unique Headers work with custom posts?No, but that is an extremely good idea.
The best I can suggest right now, is to change ‘post’ to ‘any’ where the $args variable is set:
http://plugins.svn.ww.wp.xz.cn/unique-headers/tags/1.2/index.php
Be aware though, that the next time you update the plugin that change would be wiped.I’ve left a note for myself to add a filter onto that and to write a blog post explaining how to use the filter to add custom post-type support into it. I’m quite busy at the moment though, so I probably won’t get to this task until October some time sorry.