Chip Bennett
Forum Replies Created
-
Forum: Plugins
In reply to: [cbnet Really Simple CAPTCHA Comments] Update for WP 3.5?Version 2.0 of the Plugin is compatible with WordPress 3.5. Are you experiencing any issues?
Hi Francois,
I think you should be fine if you just use the user-profile setting for the two users you want to receive email notification.
Please let me know if it doesn’t work as expected.
Thanks for using the Plugin!
Fixed in version 3.0 of the Plugin.
Fixed in version 3.0 of the Plugin.
Fixed in version 3.0 of the Plugin.
Fixed in version 3.0 of the Plugin.
Forum: Plugins
In reply to: [cbnet Different Posts Per Page] cbnet DiffPosts per page category choiceI’m looking for a good way to implement that feature.
Version 2.0 of the Plugin was completely rewritten from previous versions, and the Plugin now works in a completely different (and far better) way. One of the things I dropped, unless/until I can come up with a clean way to re-implement it, was the ability to add arbitrary categories.
If I can come up with a clean way to re-implement it, I will. But in the meantime, it is easy enough to do yourself, using the following example code.
Assuming you have a category slug
foo, and you want it to display5posts per page, inascendingorder:function anemih_filter_pre_get_posts( $query ) { if ( is_category( 'foo' ) && $query->is_main_query() ) { $query->set( 'posts_per_page', '5' ); $query->set( 'order' => 'ASC' ); } } add_filter( 'pre_get_posts', 'anemih_filter_pre_get_posts', 11 );You would add this code to your Theme’s
functions.phpfile, or, better yet, a site-specific Plugin. Just changefoo,5, andASCas needed.If you have a second category,
bar, that you want to display3posts per page, indescendingorder, you can simply add it to the function, like so:function anemih_filter_pre_get_posts( $query ) { if ( is_category( 'foo' ) && $query->is_main_query() ) { $query->set( 'posts_per_page', '5' ); $query->set( 'order' => 'ASC' ); } if ( is_category( 'bar' ) && $query->is_main_query() ) { $query->set( 'posts_per_page', '3' ); $query->set( 'order' => 'DESC' ); } } add_filter( 'pre_get_posts', 'anemih_filter_pre_get_posts', 11 );That’s all that the Plugin is doing, actually. π (And I added a priority
11to theadd_action()call, to ensure that your custom code fires after the Plugin code.)Forum: Plugins
In reply to: [Bitly's Wordpress Plugin] [Plugin: WP Bit.ly] Shortlink for scheduled postsI’ve added this to Version 1.0, which I will be releasing shortly.
Thanks for the suggestion!
Hi all; I’ve fixed this issue in Version 1.0, which I will be releasing shortly.
Note, the Plugin settings have moved from a custom Plugin settings page to Dashboard -> Settings -> Writing.
Hi all; this is resolved in Version 1.0, which I’ll be releasing shortly.
Note: Plugin settings have been moved from a custom Plugin settings page to Dashboard -> Settings -> Writing.
Hey Syed,
I’ve added this feature to Version 1.0, which I will be releasing shortly. π
(pun intended)
PHP Fatal error: Cannot redeclare wp_notify_postauthor() (previously declared in /home/plushmem/public_html/wp-content/plugins/cbnet-multi-author-comment-notification/pluggable.php:26) in /home/plushmem/public_html/wp-content/plugins/comment-emailer/notify_postauthor.php on line 147
The problem isn’t this Plugin. The problem is the Comment Emailer Plugin. It is also defining the
wp_notify_postauthor()pluggable function, but isn’t properly wrapping it in afunction_exists()conditional.You’re welcome to go back to version 2.0 (it is available under the Developers tab on the Plugin listing), but it’s not going to fix the problem.
The only way to fix the problem is to deactivate the Comment Emailer Plugin, unless/until the developer fixes it.
Forum: Plugins
In reply to: [cbnet Different Posts Per Page] Where is the options panel?Also, if you have such a crash, can you enable
WP_DEBUGinwp-config.php, and let me know what fatal error is being reported?This is already fixed in version 2.0.2. Can you give it a try, and let me know if you still have the same problem?
Thanks!