Viewing 4 replies - 1 through 4 (of 4 total)
  • With the help of the Template Hierarchy article, determine what Template is displaying your posts (likely index.php), then paste the content of that template in a pastebin [1] and report the link back here.

    [1] wordpress.pastebin.ca

    Thread Starter cqsite

    (@cqsite)

    Thank you for replying; hopefully I did this correctly:

    https://wordpress.pastebin.ca/1622063

    Thread Starter cqsite

    (@cqsite)

    any ideas?

    You have a whole section of code that display your most recent post at the top of your posts display…the code begins with <div class="recent"> and ends with </div><!--recent--> so you could delete just that section.

    But if you must keep that section then you want to put an if statement around that code, something like:

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    if ($paged == 1) {
    ?>
    <div class="recent">
    .
    .
    .
    </div><!--recent-->
    <?php
    }
    ?>

    If you keep that code you might consider changing the query to:

    <?php $my_query = new WP_Query('showposts=1&caller_get_posts=1');

    so you don’t get stickies included…just in case you use stickies in the future.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Older Entries Page-Post appears sticky, but isn’t…’ is closed to new replies.