[theme-reviewers] front-page
Chip Bennett
chip at chipbennett.net
Tue May 28 12:48:03 UTC 2013
Even when using a front-page.php template file, the Theme must still
accommodate the use case of front page displaying blog posts.
An easy way to account for that use case in front-page.php is to output
conditionally based on get_option( 'show_on_front' ):
if ( 'page' == get_option( 'show_on_front' ) ) {
// Custom static front page content
} else {
// Blog posts index, e.g. via including template/template part
}
On Tue, May 28, 2013 at 7:42 AM, priyanshu mittal <
priyanshu.mittal at gmail.com> wrote:
> I am using front-page.php in my theme for displaying theme specific
> features but when i select the display latest post from reading settings .I
> still got the content of front-page.php file to display.,.. instead of
> latest blogs.. Is this the correct behavior
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130528/3f0977cf/attachment.html>
More information about the theme-reviewers
mailing list