Forums

Bad Behavior Conflicting with Robots-Meta (3 posts)

  1. congdongthongtin
    Member
    Posted 2 years ago #

    Errors showed when update a post:

    WordPress database error: [Unknown column 'robotsmeta' in 'field list']
    UPDATE wp_posts SET robotsmeta = 'index,follow' WHERE ID = 627

    WordPress database error: [Unknown column 'robotsmeta' in 'field list']
    UPDATE wp_posts SET robotsmeta = 'index,follow' WHERE ID = 586

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/9/d271604408/htdocs/samdiener/wp-includes/wp-db.php:587) in /homepages/9/d271604408/htdocs/samdiener/wp-includes/pluggable.php on line 865

    I hope the plugin developers solve this !!!

    http://wordpress.org/extend/plugins/bad-behavior/

  2. error
    Member
    Posted 2 years ago #

    This does not look like an error with Bad Behavior.

  3. e-sushi
    Member
    Posted 2 years ago #

    You could drop the "robots-meta" plugin all together by using conditional wordpress tags in your header.

    Here is an example that will allow indexing the main index page (aka home page) as well as single posts and pages or the category archives:

    <?php
    if((is_home() && is_front_page() && !is_paged()) || is_single() || is_page() || is_category()) {
    ?>
    <meta name="robots" content="noodp,noydir" />
    <?php
    } else {
    ?>
    <meta name="robots" content="noindex,noarchive,noodp,noydir" />
    <?php
    }
    ?>

    You'll find ample information about those 'is_page()' and 'is_category()' etc. here at wordpress.org!

    Maybe that helps you out?

Topic Closed

This topic has been closed to new replies.

About this Topic