WordPress.org

Ready to get started?Download WordPress

Forums

Description in <head> (2 posts)

  1. nieuws
    Member
    Posted 8 years ago #

    Hi everyone,

    My <title> tag is different per page (see source below) as i like it. I want the same thing for the description tag. So that it reads the first lines out of the post or something. Could anyone please help me out?

    <title><?php
    if(is_home()) {
    // bloginfo('tagline');
    echo 'Title voor homepage';
    } else {
    wp_title(""); echo ' - NieuwsZicht';
    }
    ?></title>
    <META NAME="description" CONTENT="I want this to read the first lines out of the post made on that certain page">

  2. nieuws
    Member
    Posted 8 years ago #

    Iam sure someone has to know..

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.