Exclude categories in front page (ECV doesn´t work in 2.0.2) (3 posts)

  1. Madcore
    Posted 10 years ago #

    I´ve downloaded the latest WordPress to make another blog instead regular mine to test changes. One of the plugins I using, Elegant Category (In)Visibility, doesn´t work properly. When I check categories to exclude them from the front page of the blog, mesh up the database, and doesn´t show the categories excluded when I check them. It give me that DB error:

    WordPress database error: [Not unique table/alias: 'wp_post2cat']
    SELECT DISTINCT * FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT JOIN wp_categories ON (wp_post2cat.category_id = wp_categories.cat_ID) LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) WHERE 1=1 AND (category_id = '3') AND post_date_gmt <= '2006-03-13 14:39:59' AND (post_status = "publish" OR post_author = 1 AND post_status != 'draft' AND post_status != 'static') AND post_status != "attachment" AND category_id <> 1 AND category_id <> 2 AND category_id <> 3 GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 0, 10

    There´s another plugin, or a way via template tags, to get in the frontpage only the posts of a given category ID?.

  2. dannybcastillo
    Posted 9 years ago #

    I get the same error with a different plugin/s

    Category Visibility 1.0.0b & 1.0.0d by Rich Hamilton

    It seems to only to happen with my sideblog plugin activated

  3. moshu
    Posted 9 years ago #

    You may want to try this plugin: http://ryowebsite.com/?p=46
    It works with the latest WP.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.