I opened a similar topic, but since it is a little confusing, I decided to create a new topic to clarify more.
i run the website and i found the errors seems like:
Notice: attribute_escape is deprecated since version 2.8! Use esc_attr() instead. in C:\xampp\htdocs\website\wp-includes\functions.php on line 2638
I search and i found some useful information like : When do I need to use esc_attr when using WordPress internal functions , but sorry i am not undearstand..
The errors are in the post title. for example, this is my code of the index.php
. Where exactly are the errors?
<?php get_header(); ?>
<div id="main" class="container_12">
<div id="content" class="grid_9 alpha">
<?php query_posts( 'posts_per_page=6' );?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID();?>">
<h2><a href="<?php the_permalink() ?>" <?php the_title_attribute(); ?>">
<?php the_title(); ?> </a></h2>
<?php if(is_sticky()):?> <article id="sticky_post"><div class="sticky-title"><h2>Welocome</h2></div></article>
<?php endif;?>
<?php if( in_array( $post->ID, array(354) ) )
{echo get_the_content();}
else
{echo get_excerpt();}?>
<div id="more" class="container_12">
<p class="read-more"></p> </div>
<div class="dots"> <img src="<?php echo get_bloginfo('template_directory'); ?>/images/dots.png" border="0" /></div>
</div> <!-- end class post -->
<?php endwhile; ?>
<?php else : ?>
<h2> Not found </h2>
<p> Sorry but you are looking for something that isn't here. </p>
</div><!--content-->
<?php endif; ?>
</div><!--header_container-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>