WordPress.org

Support

Support » Plugins and Hacks » bloginfo() acts weird in blog posts

bloginfo() acts weird in blog posts

  • I am using a modified version of WordPress Meta Description to make meta descriptions in my pages and posts.

    Basically it uses excerpt for the meta description, or if no excerpt exists, it uses the tagline, bloginfo('description'). This fallback works fine except in blog posts with no excerpt. Here bloginfo() outputs nothing.

    On posts with no excerpt this will be the result: <meta name="description" content="" /> 🙁

    Plugin code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bloginfo() acts weird in blog posts’ is closed to new replies.