jlanefwbbc
Member
Posted 3 months ago #
On our church website, I am using a page to have running announcements. I am using this page as the 'blog'.
Every time I add a new post, the first thing that appears is an image that I had on the homepage. I don't know how it got there and it doesn't appear when I am editing the post, only after it displays. I have tried adding several new posts and the same thing keeps happening.
Here is the link to the page: http://ffwbchipley.com/events/whats-been-going-on/
Your help is greatly appreciated!
I'm guessing that in your loop there's some code that says something like:
Got and get the feature image, if it's not there, put this in it place.
I would look in there if I were you. Look for something like post_thumbnail near the <h2 class="art-PostHeader">
If that's too complicated, please show the code for your index.php using pastebin. Please don't paste the code in here.
jlanefwbbc
Member
Posted 3 months ago #
I did find the code that has the attachment id, etc. Should I delete it? How did it get there and how do I get it to never do it again? :)
http://pastebin.com/R1j15tws
Try changing line 10 -15 to this:
<h2 class="art-PostHeader">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
<?php the_title(); ?>
</a>
</h2>
i don't know how it got there. I can only guess that the theme developer put it in there.