flayakaya
Forum Replies Created
-
Same here.
This plugin doesn’t seams to be working as expected with last version 1.5.1 and WP 4.0.1Absolutely not, I’m assuming the team would follow this forum.
Also, the problem is pretty obvious.Hi, this doesn’t seams possible, as I said, since the plugin really misses all the saving to the database part for this variable.
As next update will probably resolve this problem, putting a fix in functions.php would not be so helpful.
Well, since I see I’m not the only one with this problem, I looked at the scripts and realize that also the part about the registering the option ‘numberposts’ in the DDB is missing.
You could still add the parameter ‘numberposts’ to each shortcode for a fast solution.
But here’s a fix for those who’ll really need it :
-
In the wp-content/plugins/list-category-posts/include/lcp-options.php script,
replace Line n°25:
<form method="post" action="lcp-options.php">
By:
<form method="post" action="<?php echo $_SERVER['HTTP_REFERER']; ?>">
-
And replace Line n°21:
$numberposts = get_option('numberposts');
By:// // TEMPORARY FIX to be able to change the default "Number of Posts" parameter on v0.51 // $option_name = 'numberposts'; if( isset($_POST[$option_name]) ){ $new_numberposts = intval($_POST[$option_name]); // minimum constraint // change it to the new value: if ( get_option( $option_name ) !== false ) { // The option already exists, so we just update it. update_option( $option_name, $new_numberposts ); } else { // The option hasn't been added yet. We'll add it with $autoload set to 'no'. add_option( $option_name, $new_numberposts, null, 'no' ); } } $numberposts = get_option('numberposts'); // // end FIX //
Hi enejb,
it seams that in the last revision (372986 / 14th april 2011)You wipped out the “better way to filter the description”
Rich HTML isn’t enabled anymore but if I put back jZed’s lines :
remove_filter('pre_user_description', 'wp_filter_kses'); add_filter( 'pre_user_description', 'wp_filter_post_kses' );
It works fine
-
In the wp-content/plugins/list-category-posts/include/lcp-options.php script,