• 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 &rarr;]'); ?>
    <?php } else {the_excerpt(); ?>
    <a href="<?php the_permalink();??>">Read More&raquo;&raquo;</a>
    <?php }?>
    <p class="tagged"><strong>Tags:</strong> <?php the_tags('&nbsp; ',' &middot; ') ?><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!

Viewing 1 replies (of 1 total)
  • Thread Starter 789361

    I suppose I should have posted this before. This is the HTML that the above code produces in HTML

    <div class="hentry">
    <h2 class="entry-title"><a href="https://localhost:8888/wordpress/?p=85" rel="bookmark" title="Permanent Link to The Legend of Zelda: Four Swords Adventures">The Legend of Zelda: Four Swords Adventures</a></h2>
    <h4 class="meta">May 26th, 2008 by <span class="author"><a class="url vcard fn" href="">admin</a></span><br /><a href="https://localhost:8888/wordpress/?p=85#respond">Respond</a></h4>
    <div class="entry entry-content">
    ??? ???		<p>Four Swords was a grand ambition that created a uniquely fun social environment and foreshadowed DS wireless connectivity. Sadly, the charmingly retro graphics, bitterly competitive gameplay, and clever use of hardware peripherals were completely overshadowed by technical kludge and ridiculous expense.</p>
    
    ??? ??? ?			<a href="https://localhost:8888/wordpress/?p=85">Read More&raquo;&raquo;</a>
    							<p class="tagged"><strong>Tags:</strong> &nbsp; <a href="https://localhost:8888/wordpress/?tag=action" rel="tag">action</a> &middot; <a href="https://localhost:8888/wordpress/?tag=four-swords-adventures" rel="tag">four swords adventures</a> &middot; <a href="https://localhost:8888/wordpress/?tag=nintendo" rel="tag">nintendo</a> &middot; <a href="https://localhost:8888/wordpress/?tag=zelda" rel="tag">zelda</a><span class="add_comment"><a href="https://localhost:8888/wordpress/?p=85#respond" title="Comment on The Legend of Zelda: Four Swords Adventures">No Comments.</a></span></p>
    </div>
    </div> <!--end hentry class-->

Viewing 1 replies (of 1 total)
  • The topic ‘Invalid characters appearing above post; next to ‘read more’’ is closed to new replies.