Support » Plugin: Slim SEO - Fast & Automated WordPress SEO Plugin » This feed is valid but line 11, column 8: title should not be blank?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi,

    The RSS/Feed URL and its content is generated by WordPress and has nothing related to Slim SEO.

    I’d suggest you checking the title of all posts on your site to see if there’s any post that don’t have title.

    templederr

    (@celebtemple)

    Hi, it seems that code that you provide me in this ticket: https://wordpress.org/support/topic/remove-site-name-from-the-post-titles/ causing feed validation error.

    add_filter( ‘document_title_parts’, function( $title ) {
    unset( $title[‘site’] );
    return $title;
    } );

    if I rename ‘site’ to ‘IMG Trend’ I can pass feed validator, but with unset( $title[‘site’] ); I have error.

    Can you help me with this, please?

    Plugin Author Anh Tran

    (@rilwis)

    Oh, I see. That’s my bad.

    Please try to use the code below:

    add_filter( 'document_title_parts', function( $title ) {
        if ( ! is_feed() ) {
            unset( $title['site'] );
        }
        return $title;
    } );
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.