Forums

[resolved] Pages showing unwanted excerpt at top (6 posts)

  1. ourworldmyeye
    Member
    Posted 1 year ago #

    Hi,

    Had a good try at searching the forums and the internet in general for anyone else who is having the problem I am...but had no success.

    So trying my luck asking the question here...hopefully some code guru might be able to spot the cause in seconds!

    My site is: http://www.ourworldmyeye.com

    It uses ThreatToCreativity (slightly hacked version) as the theme and has numerous plugins - one being Thumbs as Excerpts.

    The front page of the site shows a thumb and excerpt of posts, which when clicked on lead to the full post. All that is fine.

    However, I also have a couple of additional static pages (with about and contact info etc). if you click on one of these, a strange excerpt of the content of the page appears above the header on the page. An example is here: http://www.ourworldmyeye.com/who/

    I have gone through the code as best I can but cannot nail what is causing it. I am guessing that the site is producing an excerpt for the pages (rather than just for posts on the front page) and is dumping these at the top of the page in question. I wondered if it was a clash with the Thumbs for Excerpts plugin but can't find anyone who has experienced the same on the plugins website.

    Anyone got any suggestions?

    Thanks

    John

  2. keesiemeijer
    moderator
    Posted 1 year ago #

    It is a meta (description) tag in your header (header.php) which is not formatted correctly. example:
    <meta name="description" content="<a...><img ...></a>WHO? I am a photographer ... />

    Are you using a seo plugin? If so deactivate it and see if the problem is solved.

  3. ourworldmyeye
    Member
    Posted 1 year ago #

    Thanks for that. I don't have any SEO plugin apart from a couple of minor ones for images and to remove common words etc.

    But systematically went through disabling plugins to see if I could find one causing a problem.

    When I deactivated Thumbnails for Excerpts - the problem stopped. So it looks like it is something to do with that.

    I will have a look at the header code again and see if I can spot anything.

    Cheers

  4. ourworldmyeye
    Member
    Posted 1 year ago #

    Regarding the above! I am still hitting a brick wall! Think i have code blindness (as well as ignorance!).

    I have pasted the code below for both my header and then below that the Thumbs for Excerpts plugin.

    If anyone has the inclination and wants to see if they can see what is causing the issue - it would be very much appreciated!

    Thanks

    [Huge chunk of code moderated as per the Forum Rules. Please use the pastebin]

  5. keesiemeijer
    moderator
    Posted 1 year ago #

    delete this line from your header.php:

    <meta name="description" content="<?php the_excerpt_rss(); ?>" />

    And see if it works.

  6. ourworldmyeye
    Member
    Posted 1 year ago #

    Keesie - that was it...it worked!

    Thank you so much for the help and my apologies for not spotting that or giving it a try first! Seems so simple now it has been resolved...but I wouldn't have figured it out myself in a million years.

    Cheers

    John

Topic Closed

This topic has been closed to new replies.

About this Topic