simplymybusiness
Member
Posted 3 years ago #
I have worked on this for several hours now and I am hoping that someone will have an answer for me.
When I include a photo in my post it will not show unless you click on "read more"...even if it is the only item in the post. I do not have this problem with any of my other blogs, but they are not in this theme or this version of WP.
Also,the new theme I am using only shows a portion of each post. Is there a way to change that? I have checked "full text" in the reading settings.
Thanks so much.
simplymybusiness
Member
Posted 3 years ago #
Thanks Evita! I found this in the index.php
<?php the_excerpt(); ?>
</div>
<p class="meta">" class="more">Read More <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »', 'comments'); ?></p>
</div>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2 class="title">" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2>
<p class="byline"><small><?php the_time('F jS, Y') ?> by <?php the_author() ?> <?php edit_post_link('Edit', '', ' | '); ?></small></p>
<div class="entry">
<?php the_excerpt(); ?>
</div>
However, I am not certain what to do next.
thanks again
simplymybusiness
Member
Posted 3 years ago #
Well, for a little while the photo showed in the post...until I made another post. Not only did the first post collapse, but then the newest post shows the narrative twice.
I made the changes below. Gosh if anyone could possibly assist, I would be so grateful!
<div class="post" id="post-<?php the_ID(); ?>"><p class="meta">
<h1 class="title">" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h1>
<p class="byline"><small><?php the_time('F jS, Y') ?> by <?php the_author() ?> <?php edit_post_link('Edit', '', ' | '); ?></small></p>
<div class="entry">
<?php the_excerpt(); ?>
</div>
<p class="meta"><?php
// Display all content, including text below more
$more = 1;
the_content();
?>" class="more">Read More <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »', 'comments'); ?><p class="meta">
</div>
<?php while (have_posts()) : the_post(); ?>
If you use <?php the_excerpt(); ?> your image will not be visible, because WP strips out all HTML-Code.
You have to use your own excerpt ("more" on writing page in admin), or a plugin like "the-excerpt-reloading".
It seems you are using not your own design, so it will be better you ask the author of your design. Your code appeales a bit messy.