Forums

Need Post title in Header if poss (7 posts)

  1. weiler14
    Member
    Posted 2 years ago #

    so instead of 'Medical Coding and Billing Experts'
    I want the Post Title please
    medicalcodingstaffing.com

  2. alchymyth
    The Sweeper
    Posted 2 years ago #

    use <?php wp_title(' ', true, '' ); ?> instead of <?php bloginfo('name'); ?> in the header.php.

    here in this space:

    <div class="header">
    						<span class="top-title white block"><a href="<?php bloginfo('url'); ?>/" title=""><?php wp_title(' ', true, '' ); ?></a></span>

    PS: what the parameters mean - codex wp_title

  3. xcded
    Member
    Posted 2 years ago #

  4. weiler14
    Member
    Posted 2 years ago #

    Nope. both of these did Not work.
    here is my header. All i want is the Post title to appear on the actual Post-Page at the top right where is says medical coding and billing experts. NOT on the top browser bar, but right about where it says home, about, etc.
    Thanks!
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <title><?php if (is_category() || is_author()) {wp_title(':',true,'right');bloginfo('name');}
    elseif(is_tag()) {_e('Posts tagged with ');wp_title('',true);if(wp_title('',false)) {echo ' : ';} bloginfo('name');}
    elseif(is_404()) {bloginfo('name');_e(' - Page not found!');}
    elseif (is_single()) {wp_title(':',true,'right');bloginfo('name');}
    else {bloginfo('name');}?>
    </title>
    <?php wp_head(); ?>

  5. weiler14
    Member
    Posted 2 years ago #

    **right Above where it says home, about

  6. weiler14
    Member
    Posted 2 years ago #

    i got it! i changed single-post.php instead of =""> <?php bloginfo('name'); ?> I PUT <?php the_title(); ?> !!

  7. xcded
    Member
    Posted 2 years ago #

    You have to use te same code...

    <?php wp_title(); ?>

    after you print the Blog Name using...

    <?php bloginfo('name');?>

    in your template.

    <h1><?php wp_title();?> - <?php bloginfo('name');?></h1>

    This should print: "Mi Blog Title - Home" if you are in the Home Page.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.