Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Front Pages and Home Pages and Posts Pages, Oh My!

Front Pages and Home Pages and Posts Pages, Oh My!

A brief discussion about the differences between the Front Page, the Home Page, and the Posts Page in WordPress.

Robin Cornett

June 01, 2017
Tweet

More Decks by Robin Cornett

Other Decks in Technology

Transcript

  1. POSTS V. PAGES ▪ WordPress’ original/default content ▪ Ordered by

    date ▪ “Ages” off the first page of the archive ▪ May lose relevancy over time ▪ Listed in an archive ▪ Introduced in 2005 (almost 4 years into WordPress history) ▪ Static/unchanging content ▪ Should remain relevant over time ▪ No archive available Posts Pages
  2. FRONT PAGE ▪ Always refers to the root of your

    site: mycoolsite.com ▪ Can refer to a static front page (a singular page) ▪ Can refer to a posts archive (latest posts) ▪ Always refers to the root of your site ▪ Code representation: is_front_page();
  3. POSTS PAGE ▪ May not always exist on your site.

    ▪ Requires: front page set to a static page. ▪ Is an archive which pretends to be a static page, but functions only as an archive. ▪ Code representation: $posts_page = get_option( 'page_for_posts' ); $posts_page === get_the_ID();
  4. HOME PAGE ▪ The archive of your posts. ▪ May

    be a singular page (Posts Page) or an archive ▪ Okay, technically it’s always an archive ▪ May be the Front Page of your site, or may be a different page entirely. is_home();
  5. Please, never say “my home page”. Technically, it’s just confusing.

    Consider using the terms “front page” and “blog page” or “posts page” instead. Never say this.
  6. You might be fine with your front page set to

    latest posts. If your site is a blog…