• Resolved keychange

    (@keychange)


    Hi my client came up with this issue and it coincided (a week or so ) with a Silence is Golden hack attack and so I assumed it may be related however after many hours of research and testing I am not sure.

    The client has job posts which are then shown on a page named “Positions”
    However when the edit a post and update – if you look directly at the post you can see the edited version however what appears on the “Positions” page is the original version.

    There is NO cache involved, it happens on multiple browsers over wide geographic are on different PCs using different ISPs.

    It is a custom theme – not mine and not a child. page.php uses
    <!– DEFAULT PAGE –>
    <div id=”page” class=”page”>
    <?php if (have_posts()) : while (have_posts()) : the_post(); #— start the loop ?>

    <h1><?php the_title(); ?></h1>
    <div class=”story”>
    <?php the_content(); ?>
    </div><!– end story –>

    And I have read in one post ( that I have now lost ) that this will always display the oldest post. Is this correct? If so how to fix and if not suggestions on possible fixes but I stress there is NO cache and still happens with NO plugins installed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter keychange

    (@keychange)

    Is it possible that the code above is deprecated or otherwise at odds with more recent updates on WP

    Thread Starter keychange

    (@keychange)

    Actually sorry but I think this is the offending code

    <!– POST CONTENT –>
    <div id=”post” class=”blog index”>

    <?php if (have_posts()) : while (have_posts()) : the_post(); #— start the loop ?>
    <div class=”list”>
    <?php the_date(”,'<p class=”meta”>’,'</p>’); #— insert the post date ?>
    <h2 class=”storytitle”>” rel=”bookmark”><?php the_title(); ?></h2>
    <?php the_post_thumbnail(‘thumb’); #— feature image ?>
    <?php the_content(__(‘(more…)’)); ?>
    </div><!– end story –>

    Thread Starter keychange

    (@keychange)

    Well this is a strange one – it is not the code or any issue with WP or the theme. We had a silence is golden hack which was dealt with IMO appropriately.

    But I am assuming that one of their little tricks was to take all posts and create one big post replicating the appearance of all the previous posts. this meant that while edits were correctly happening on the individual post -the hack mega post didn’t change and so it appeared that the page was not updating.

    Simple but bloody costly as I naturally assumed it was a code or cache error.

    Thread Starter keychange

    (@keychange)

    On reflection I think this is a user error. They had a whole series of posts similar content and I reckon someone did a Select All on the page rather than just the post and the Copy and Paste.

    But the select all has copied every post on the page, making the new post a mega post

    Thread Starter keychange

    (@keychange)

    On reflection i reckon a staff member has decided to copy and paste a post , as there are a number of similar content posts. Trouble is they did a select all of the post page rather than just the post and so replicated the entire page as one post.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't show most recent post on page’ is closed to new replies.