Forum Replies Created

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

    (@rogerdodger)

    Ok, that’s fixed it thanks. A plain English example, for those who follow after…

    Make a copy of your index.php template, rename it as specialtemplate.php and then upload it. CHMOD it to 666 using your FTP software. This makes it writable.

    Now go to your WordPress control panel, go “Presentation” / “Themes” and then paste the following text into the top of your _new_ template…

    <?php
    /*
    Template Name: specialpage
    */
    ?>

    Save it. Now go to “Manage” / “Pages” / “Edit” in your control panel, and in the sidebar of the editing page you’ll see a new drop-down option has appeared: called “Page Template”. Select ‘specialpage’ from that menu and save.

    You can now go over to edit your specialtemplate.php in the Control Panel, and the changes you make to it will show up ONLY on the static page you applied the special template to.

    oops, this forum isn’t “code posting friendly”. There are bits that don’t display. Oh well. You can read up on the idea here…

    https://codex.www.ads-software.com/Template_Tags/get_posts

    I now have a “follow on” of post titles & links that display at the bottom of the index page, offset by the number of posts I display on my front page (in this case, 20)…

    Tweak and paste this snippet…

    **

    Earlier posts…<br>

      <?php
      $posts = get_posts(‘numberposts=20&offset=20’);
      foreach($posts as $post) :
      ?>

    • “><?php the_title(); ?>.
    • <?php endforeach; ?>

    **

    Since this was only _not_ working on the front index page, I solved it by duplicating index.php, re-naming it as archive.php (which does not otherwise exist, with the Classic template) and then edited the index.php page to remove the “previous posts” navigation element.

    I have the same problem, with the Classic theme. The front page “previous posts” footer button gives a “404”. Everything else is fine. I too tried plugins to solve it, but with no result. If I find the solution, I’ll post here

Viewing 5 replies - 1 through 5 (of 5 total)