Forums

Random image appears in all posts (4 posts)

  1. 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!

  2. Christine
    Moderator
    Posted 3 months ago #

    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.

  3. 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

  4. Christine
    Moderator
    Posted 3 months ago #

    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.

Reply

You must log in to post.

About this Topic