Basically in plain English i'm looking to have an <h2> next to the websites title <h1> that contains different content depending on where the user is on the site, like so...
Users on homepage, author page, 404 page, 'page' or search results = Website Description
User on Post = Posts Category Name
User on Category page = Category name
User on tag page = Tag name
I was running a few conditionals but it just wasn't producing any results worth mentioning. Various problems ranging from multiple outputs of the description to no output at all!
So i've scrapped it all and am looking to the help of the one and only WDF crew!
Just FYI this was last thing i was going with which had been butchered multiple times and i sort of got lost in the process, hence the multiple "elseif's".
<?php
if($post->post_parent) { ?>
<h3>
<?php
$parent_title = get_the_title($post->post_parent);
echo $parent_title;
?>
</h3>
<?php
}
elseif (is_home() ) {
?>
<h2><?php bloginfo('description'); ?></h2>
<?php }
elseif ( is_search() ) { ?>
<h2><?php bloginfo('description'); ?></h2>
<?php } ?>
Help


















