• Andrew

    (@andrewkantor)


    Hey, all. I’ve searched through the codex and gotten close to finding an answer, but not close enough.

    I have a site with daily newsish content. I have it set to only display the current day’s posts on the home page, but I’d also like a link to yesterday’s posts.

    I know I can create a list of monthly archives, but I’m on a daily schedule.

    How can I create daily archive pages, and how can I put links to them on my home page?

    Many thanks!

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

    (@andrewkantor)

    Yes — definitely will get me started. I tried it, but clicking on the links it generates gives me an error:

    Warning: load_template(/home/andrewk/public_html/wp-content/themes/default/header.php) [function.load-template]: failed to open stream: No such file or directory in /home/andrewk/public_html/wp-includes/theme.php on line 407


    Fatal error: load_template() [function.require]: Failed opening required '/home/andrewk/public_html/wp-content/themes/default/header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/share/pear') in /home/andrewk/public_html/wp-includes/theme.php on line 407

    You can see it at https://www.thisisroanoke.com — left side, under “Yesterday’s News.”

    That’s not a WP page – so how do you expect it to work on it?

    Thread Starter Andrew

    (@andrewkantor)

    Huh? It sure is a WP page. Everything else works just fine.

    Right now (morning on Sunday) there’s no daily news, but the Rumors section comes right out of the blog. Once I post some news today it will appear in the news section.

    The only thing that I can’t get to work at the moment is the archives link.

    Thread Starter Andrew

    (@andrewkantor)

    Ah, found the last remaining problem. Now the page works just fine. Thanks for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Link to yesterday’s posts only — how?’ is closed to new replies.