Invalid characters appearing above post; next to ‘read more’
-
Hello,
I was modifying my Cutline index.php file so that posts in a certain category show in their entirety, and that everything else shows the excerpt. I am new to php, but got that conditional to work. However, above every post and to the right of the Read More link (for entries that have them), I am getting an invalid character (a ? in a black diamond). The character appears in the source HTML of the site as well, and the posts themselves are unmodified when I look at them in the edit window. I am running the newest version of Cutline (2.1).
Here is my hentry class code:<div class="hentry"> <h2 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <h4 class="meta"><?php the_time('F jS, Y') ?> by <span class="author"><a class="url vcard fn" href="<?php the_author_url(); ?>"><?php the_author(); ?></a></span><br /><a href="<?php the_permalink() ?>#respond">Respond</a></h4> <div class="entry entry-content"> <?php if (in_category('5')) { ?> <?php the_content('[Read more →]'); ?> <?php } else {the_excerpt(); ?> <a href="<?php the_permalink();??>">Read More»»</a> <?php }?> <p class="tagged"><strong>Tags:</strong> <?php the_tags(' ',' · ') ?><span class="add_comment"><?php comments_popup_link('No Comments.', '1 Comment', '% Comments'); ?></span></p> </div> </div> <!--end hentry class-->
As I said, I am new to php, so I have know idea if there is a grammatical error in the code somewhere. Thanks for the assistance!
- The topic ‘Invalid characters appearing above post; next to ‘read more’’ is closed to new replies.