Title: Theme does not generate meta description
Last modified: August 20, 2016

---

# Theme does not generate meta description

 *  [westcongo](https://wordpress.org/support/users/westcongo/)
 * (@westcongo)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/theme-does-not-generate-meta-description/)
 * Hi, I’m using kakilimafree template + All in one seo + WP ecommerce and I see
   that the theme does not generate the meta descriptions.
 * The header code is:
 * <title>
    <?php /* * Print the <title> tag based on what is being viewed. */ global
   $page, $paged; wp_title( ‘|’, true, ‘right’ );
 *  // Add the blog name.
    bloginfo( ‘name’ );
 *  // Add the blog description for the home/front page.
    $site_description = get_bloginfo(‘
   description’, ‘display’ ); if ( $site_description && ( is_home() || is_front_page()))
   echo ” | $site_description”;
 *  // Add a page number if necessary:
    if ( $paged >= 2 || $page >= 2 ) echo ‘ 
   | ‘ . sprintf( __( ‘Page %s’, ‘kelontong’ ), max( $paged, $page ) ); ?></title
   >
 * <?php wp_head(); ?>
 * etc etc
 * With this configuration and having the home set to a default page (product-page),
   it displays the meta title from Settings > General, and not from the All in One
   SEO config (which works for other sections). And shown no meta description anywhere
   in the site.
 * So I replaced the header code with:
 * <?php if ( is_front_page()) { ?><title>my title 3</title><?php }
    else { ?><title
   ><?php wp_title(‘ | ‘,true,’right’); ?><?php bloginfo(‘name’); ?></title><?php}?
   >
 * <?php if ( is_front_page()) { ?><meta name=”description” content=”my description
   3″><?php }
    else { } ?> The description hack is a copy of the title hack and 
   deleted text from “else” as I did not know what to put there 🙂
 * So with this hack everything seems to work just fine, meta title for home is “
   my title 3” and for elswhere in the page is the All in One SEO One. Meta description
   also shows up everywhere except for WP e-commerce product category.
 * So, it’s working but I know the description hack is not too good with that else
   which I did not know what to do. Can you please advise what would be the correct
   description hack in this case? Thanks.

The topic ‘Theme does not generate meta description’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [westcongo](https://wordpress.org/support/users/westcongo/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/theme-does-not-generate-meta-description/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
