[theme-reviewers] Front Page Implementation
Stephen Cui
scui2005 at gmail.com
Thu Jun 12 19:00:58 UTC 2014
Hi,
I know we had many discussion regarding the front-page.php vs. home.php.
But I am still confused about
*Option 1 (front-page.php):*
if ( 'posts' == get_option( 'show_on_front' ) ) {
// Load home.php
} elseif ( 'page' == get_option( 'show_on_front' ) ) {
// Load page's template part
}
else {
// Front Page Implementation
}
*Option 2 (**front-page.php)**:*
if ( 'page' == get_option( 'show_on_front' ) ) {
// Load page's template part
}
else {
// Front Page Implementation
}
*Option 3 (**home-page.php)**:*
if ( 'page' == get_option( 'show_on_front' ) ) {
// index loop
}
else {
// Home (or. Front ) Page Implementation
}
My questions are:
- If option 2 and 3 are acceptable.
- If only option 1 is acceptable, the only time front page implementation
will be displayed is when user choose Static without choosing any page as
Front page.
Regards
Stephen Cui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140612/e85f1ff0/attachment.html>
More information about the theme-reviewers
mailing list