WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [closed] Homepage title shows cateogry not description (3 posts)

  1. sparklogix
    Member
    Posted 3 years ago #

    I'm using the All In One SEO plugin and have put in the homepage Title and Description. I've also changed the title and description in the General settings in WP. However, the homepage of the site I'm working on still shows the category in the title bar.

    I'm using a custom post query on the homepage and assume that's where the problem lies, I just don't know how to fix it.

    If you need it, here's the query being used:

    <?php $i=0;
    					query_posts('cat=19&posts_per_page=4')
    				?>
    				<?php if ( have_posts() ) while ( have_posts() ) : the_post();
    				 $i++;
    					  if($i%4==0){ $class='none';} else $class='';
    				 $getName = get_post_meta($post->ID,'Name',false);?>
            		<li class="<?php echo $class;?>">
                    <?php if (has_post_thumbnail( $post->ID )) : ?>
                   <?php  $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
                   <img src="<?php echo $image[0]; ?>" width="50" height="50" alt="" />
                   <?php endif;?>
  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

  3. sparklogix
    Member
    Posted 3 years ago #

    Sorry I didn't notice this before you answered the other thread. Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic