• Resolved chabotjeff

    (@chabotjeff)


    Anyone have a suggestion for adding a news specific page? This page could look almost like the homepage, with all news headlines down the center.

    I tried doing a “save as” news.php with the index.php, but it did not like.

Viewing 6 replies - 1 through 6 (of 6 total)
  • did you do something wild like make a news category, and post your news posts in it?

    Thread Starter chabotjeff

    (@chabotjeff)

    yeah, it would seem easy right? Well, your solution would require a post – because because pages don’t follow categories.

    What I’m looking for is a news page, that just like the homepage, could display 10 stories with the sidebars in tact. It could even follow the layout of an archive, except with current posts.

    Maybe templates is the answer?

    1) set up a category called News
    2) add news items as posts
    3) develop a template specifically for displaying your news and name it category_x.php where “x” equals the number of the category (its ID). You can simply copy the content of category.php into this file and save it and upload it to your theme folder. When you click the link to take you to your news page, it will load posts for that category.

    Or… simply make that category, add news posts to it, then use some custom code in your page.php file that conditionally will display the last “x” number of posts in a specific category (the news one).

    I believe there are plugins to help you with calling recent posts for specific categories, but be careful which ones you use – some don’t work in recent versions of WordPress.

    chabotjeff, what’s wrong with the category archive of the news category?

    isn’t that exactly what you want?

    Thread Starter chabotjeff

    (@chabotjeff)

    Hi. Sorry for the long delay. Thank you both for your advice. I took syncbox’s advice but must be missing a step or two. I get the message “Sorry. The page you are looking for is not here.”

    I took category.php (from the wp-includes folder), saved it as category_1.php (which is the id of the category) into the themes folder.

    The I tried to link to it but got that message. Can you tell me what I’m missing?

    Ivovic, your idea to great too. However, how do I link to it? How can I include posts from all dates, not as they are separated by month?

    Thanks, Jeff

    Thread Starter chabotjeff

    (@chabotjeff)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add a news page – separate from index/post/page’ is closed to new replies.