Post Level (for WP2.3)

I used for a long time a plugin to restrict access of somes posts to some people only.

This plugin (Post level) was released for wp 2.1. But it made some database error when I upgraded to wp 2.3. So I modified it to be compatible to 2.3.

Download link : Post-level_WP2.3 (I change the version number for 1.1.3 instead of 1.1.1)

corrected error : The following database error message appeared in « single post » page, instead of writing links for previous and next post.

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds 
to your MySQL server version for the right syntax to use near 'AS p WHERE p.post_date < '2007-09-08 14:27:23' 
AND p.post_type = 'post' AND p. ' at line 1]
SELECT p.ID, p.post_title FROM (wp_posts LEFT JOIN wp_postmeta as pl_wp_postmeta ON 
(wp_posts.ID = pl_wp_postmeta.post_id)) AS p WHERE p.post_date < '2007-09-08 14:27:23' 
AND p.post_type = 'post' AND p.wp_posts.post_status = 'publish' 
OR (wp_posts.post_status = 'private' AND (pl_wp_postmeta.meta_key = 'post_level' 
AND pl_wp_postmeta.meta_value <= 10 ))) ORDER BY p.post_date DESC LIMIT 1

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *