• Resolved bqwhitten

    (@bqwhitten)


    I have need for three home pages on my site each covering a different subject and with each containing content specific to their respective subjects. I have created the duplicate home pages and have them setup in my main menu but now I need to power each home page with content for a specific subject so that when a writer provides content they can select which category the content goes to and it will appear on that home page only. The design of each home page will be tied to the original theme home page and will not change but the content will over time.

    Can someone suggest or point me in the direction of instructions on how to accomplish this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Your question is confusing. A site can have only one home page. Each category archive is a page, which some people call a landing page, and will show all of the posts in that category. When you create a Page in WordPress, it has its own address, which is different from the home page (except for the one you choose to be your home page).

    Pages (and posts) can contain dynamic parts (shortcodes or Gutenberg blocks) to present whatever you can think of.

    There are themes that create a front page template that allow the user to select what categories or static pages should be featured. You can create a child theme with a front_page template.

    You can create a child theme with category templates named for the specific category to individualize the content or layout of the category archive.

    Thread Starter bqwhitten

    (@bqwhitten)

    Thanks for replying so quickly. Here’s what I am looking to do. I am creating a website that covers youth sports for my state. I have divided the state into three geographic areas, North, Central and South. I want my readers to be able to select a menu link that takes them to the geo area of the state they have an interest in.

    I want each “Home” page for that geo area to look the same (layout and such) but only carry content/stories/images for that geo area. I want my contributing writers to be able to select the geo area the story goes to and I want the public to be able to select the geo area they wish so that they don’t have to wade through tons of articles to find their news.

    Hope this helps explain my reasoning.

    I think what Joy recommended is what you need to do.

    Moderator bcworkz

    (@bcworkz)

    If you want each geo region landing page to look the same, only the posts listed are different, why not simply create geo categories and assign the appropriate geo category to each post? You can even assign multiple regions if that’s appropriate in some cases. Let’s say one such category is “North”. Requesting example.com/category/north/ will lead to a page listing all posts with the “North” category assigned.

    Other than assigning the correct categories, you don’t need to do anything else special, WP will handle this automatically. If you need the geo category pages to appear differently than other category pages, as Joy indicated, you should create a child theme to contain the custom templates. You can create templates named category-north.php, category-south.php etc. and they will be used for that category term only.

    You could alternately create a custom geo taxonomy along with a template named taxonomy-geo.php. It will be used for all taxonomy requests such as example.com/geo/north/.

    Thread Starter bqwhitten

    (@bqwhitten)

    Thanks to each of you for the response and suggestions. They are greatly appriciated and I will give it a shot.

    Barry

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multiple home page templates powered by categories’ is closed to new replies.