• Resolved cfisher

    (@cfisher)


    I have weird behavior on my home page today. On the home page, thumbnail images for each story will not show, but will show on the individual pages. Additionally, the “more” tag is not behaving appropriately. It seems to appear after a few sentences for each story on the home page (the server ignores where I actually place the “more” tag). I am baffled by this. I’ve also emailed my webhost to see if there are server problems.

    Also, I have not changed anything on the site since yesterday when I know everything was fine except for posting a new story today. I cannot figure out how this could have effected my site. I thought maybe this was an overzealous firewall and turned it off with no luck.

    My site is: https://www.bmedreport.com

    Any help is greatly appreciated.

    Chris

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter cfisher

    (@cfisher)

    An update: I checked source code on the actual web page and it appears that image links are getting stripped from the home page, but do appear on the individual pages. Any ideas??? I also still baffled about the “more” tag behavior described above.

    Thanks,
    Chris

    Check for the_excerpt() in index.php. If it is there, replace it with the_content().

    Thread Starter cfisher

    (@cfisher)

    Ok. Thanks so much for the feedback. I will definitely check that. Will this place my entire article on the front page instead of just an excerpt? I definitely only want a part of the article on the front page.

    Any idea why all of sudden I would have this problem? Especially since I haven’t changed the index.php? The code should not change itself?? I just ask b/c I am trying to figure out if I caused this. Thanks! Chris

    If you use the_content, then it will show everything on the home page unless you put in the more link thingy somewhere yourself.
    Using the_excerpt does it automatically, with the number of lines shown on the home page set to whatever you set it to in the dashboard (under Reading, I think)

    No – the_excerpt defaults to 55 words unless you use the Optional Excerpt to add your own customised version. The Full text/summary options in Settings/Reading refer to the RSS feeds.

    Ah, K. Never actually used it before.

    Only 55? Yikes. What’s the “Optional Excerpt”?

    Thread Starter cfisher

    (@cfisher)

    Mine has both the_excerpt() and the_content(). Here is the code:

    <?php if (is_single() || is_page()) { the_content(); } else { $excerpt = explode("[...]",get_the_excerpt()); echo $excerpt[0]; ?> <a class="more-link" href="<?php the_permalink() ?>">More...</a><?php } ?>
    				<?php link_pages('<p>Pages: ', '</p>', 'number'); ?>

    Should I change it to the_content()? I cannot images why I would be fiddling with the code on the index.php since I didn’t change anything??

    Thanks again for the interest in my issue.

    Thread Starter cfisher

    (@cfisher)

    I previewed my site in a different template, thought i did not activate the other template, and the images and “more tag” appeared to be functioning OK. This may be a template issue.

    I just remembered that the “WP Post Columns” plug-in was automatically updated yesterday. I am going to see if that could be the culprit too.

    Thread Starter cfisher

    (@cfisher)

    Deactivated the WP Post Columns plugin and it didn’t help. I may try to track down the original author of the template.. this is weirdest thing…

    Thread Starter cfisher

    (@cfisher)

    The template author got back to me and told me to change this:

    <?php if (is_single() || is_page()) { the_content(); } else { $excerpt = explode("[...]",get_the_excerpt()); echo $excerpt[0]; ?> <a class="more-link" href="<?php the_permalink() ?>">More...</a><?php } ?>

    To this:

    <?php the_content(); ?>

    geezerd- you were right on track with your suggestion. I still cannot figure for the life of me how I have always used the initial code above since I started using this template… I guess it does not matter because the template is functioning properly now. Thanks to everyone for their responses!! Chris

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Weird Home Page Behavior Started Today’ is closed to new replies.