<div dir="ltr">Of course a Theme can be developed using only index.php. But in that case, any contextual-conditional content needs to be wrapped in appropriate query conditionals.<div><br></div><div>Anything intended to be displayed only on the site front page (whether static page or blog posts index) can be wrapped in an if ( is_front_page() ) conditional.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jul 5, 2014 at 11:46 AM, Philip M. Hofer (Frumph) <span dir="ltr"><<a href="mailto:philip@frumph.net" target="_blank">philip@frumph.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-FAMILY:'Calibri';COLOR:#000000;FONT-SIZE:12pt">
<div>.. chip, stop. Learn. a theme doesn’t have to be
made with anything but the index.php, a fallback doesn’t mean “don’t do it this
way'” it means that it’s the last one it checks to display if the others don’t
exist, most themes do *not* have the others.</div>
<div> </div>
<div> </div>
<div style="FONT-STYLE:normal;DISPLAY:inline;FONT-FAMILY:'Calibri';COLOR:#000000;FONT-SIZE:small;FONT-WEIGHT:normal;TEXT-DECORATION:none">
<div style="FONT:10pt tahoma">
<div> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="chip@chipbennett.net" href="mailto:chip@chipbennett.net" target="_blank">Chip Bennett</a> </div>
<div><b>Sent:</b> Saturday, July 05, 2014 9:38 AM</div><div><div class="h5">
<div><b>To:</b> <a title="theme-reviewers@lists.wordpress.org" href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">Discussion list for WordPress
theme reviewers.</a> </div>
<div><b>Subject:</b> Re: [theme-reviewers] Is Blog.php is allowed in
theme?</div></div></div></div></div>
<div> </div></div><div><div class="h5">
<div style="FONT-STYLE:normal;DISPLAY:inline;FONT-FAMILY:'Calibri';COLOR:#000000;FONT-SIZE:small;FONT-WEIGHT:normal;TEXT-DECORATION:none">
<div dir="ltr">"<span style="FONT-FAMILY:calibri;COLOR:rgb(0,0,0);FONT-SIZE:16px">but say the
theme’s index.php is made for the home page which have things inside of which
only run ON the intro-splash first page you hit,</span>"
<div> </div>
<div>That is incorrect usage of index.php. The index.php template file is the
default fallback for all contexts. It is NOT the site front page.</div>
<div> </div>
<div>Please read these two posts:</div>
<div> </div>
<div><a href="http://www.chipbennett.net/2013/09/14/home-page-and-front-page-and-templates-oh-my/" target="_blank">http://www.chipbennett.net/2013/09/14/home-page-and-front-page-and-templates-oh-my/</a><br></div>
<div>and</div>
<div><a href="http://make.wordpress.org/themes/2014/06/28/correct-handling-of-static-front-page-and-custom-blog-posts-index-template/" target="_blank">http://make.wordpress.org/themes/2014/06/28/correct-handling-of-static-front-page-and-custom-blog-posts-index-template/</a><br>
</div></div>
<div class="gmail_extra"><br><br>
<div class="gmail_quote">On Sat, Jul 5, 2014 at 11:31 AM, Philip M. Hofer (Frumph)
<span dir="ltr"><<a href="mailto:philip@frumph.net" target="_blank">philip@frumph.net</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-FAMILY:'Calibri';COLOR:#000000;FONT-SIZE:12pt">
<div>Why would you need a sub page of a site to identify itself as is_home(),
it is not the front_page or home?</div>
<div> </div>
<div>That’s the point, to put the blog posts onto a separate sub page hence
the template; and not have it initiate functions that run as home.</div>
<div> </div>
<div>Again, and I will make this point a little more clear. When
you run the settings –> reading, ‘a static page’ [ set the posts page
] You are running the WordPress’s template hierarchy, so the the first
thing it’s going to do is use the template structure of the theme; for
example, the index.php / but say the theme’s index.php is made for the home
page which have things inside of which only run ON the intro-splash first page
you hit, .. PEOPLE DO NOT WANT THAT; the case-use here is that they want
to move their blog posts to a sub page that is NOT a home page.</div>
<div> </div>
<div>These are people who do not just “go in and modify a theme”, these are
users. They don’t create a home.php they don’t create a front-page.php
they use the theme and want to move their blog to a sub page from their
home.</div>
<div> </div>
<div>If “I” were to create a front-page.php or a home.php or otherwise when
people use the theme the template heirarchy uses those first when the setting
is not set; which defeats the purpose of having specific functionality
separated to begin with and then it cannot happen.</div>
<div> </div>
<div>And yeah, I still believe you won’t “get it”, and I have no more words to
say on the subject. It’s clear, you probably just need to
experiment some more on how it works. Or enlighten me otherwise.</div>
<div> </div>
<div style="FONT-STYLE:normal;DISPLAY:inline;FONT-FAMILY:'Calibri';COLOR:#000000;FONT-SIZE:small;FONT-WEIGHT:normal;TEXT-DECORATION:none">
<div style="FONT:10pt tahoma">
<div> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="chip@chipbennett.net" href="mailto:chip@chipbennett.net" target="_blank">Chip Bennett</a> </div>
<div><b>Sent:</b> Saturday, July 05, 2014 7:40 AM</div>
<div>
<div>
<div><b>To:</b> <a title="theme-reviewers@lists.wordpress.org" href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">Discussion
list for WordPress theme reviewers.</a> </div>
<div><b>Subject:</b> Re: [theme-reviewers] Is Blog.php is allowed in
theme?</div></div></div></div></div>
<div> </div></div>
<div>
<div>
<div style="FONT-STYLE:normal;DISPLAY:inline;FONT-FAMILY:'Calibri';COLOR:#000000;FONT-SIZE:small;FONT-WEIGHT:normal;TEXT-DECORATION:none">
<div dir="ltr">I'm not sure I follow. Why would you need the blog posts index
query/context/template not be able to identify itself as such (is_home())?
<div> </div>
<div>The *blog* is the blog posts index, which should be rendered using the
Home Template Hierarchy. When settings are configured properly (i.e. as
defined by core), then a blog.php (i.e. a custom page template to render the
blog posts index) is pointless. It will never get used, unless the Theme
instructs the user to use a configuration other than the one defined by core.
I really can't think of a valid use, ever, for blog.php.</div>
<div> </div>
<div>Post loops *other* than the blog posts index would use other
templates.</div></div>
<div class="gmail_extra"><br><br>
<div class="gmail_quote">On Sat, Jul 5, 2014 at 8:03 AM, Philip M. Hofer
(Frumph) <span dir="ltr"><<a href="mailto:philip@frumph.net" target="_blank">philip@frumph.net</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-FAMILY:'Calibri';COLOR:#000000;FONT-SIZE:12pt">
<div>This is missing information. the only way for a posts loop
that does not want to recognize itself as a home page from functions such as
is_home or is_front_page is to use a custom blog.php file; the keyword in
the article is “index template” (unless someone can clarify)</div>
<div> </div>
<div>for example, say you have an index.php file that has a
do_action(‘something’) in it and the function checks if is_front_page() go
ahead and execute, you go to settings and set a page to the posts it will
recognize that page as is_front_page; so if you don’t want that
(and there are reasons) then a blog.php is the only real solution</div>
<div> </div>
<div style="FONT-STYLE:normal;DISPLAY:inline;FONT-FAMILY:'Calibri';COLOR:#000000;FONT-SIZE:small;FONT-WEIGHT:normal;TEXT-DECORATION:none">
<div style="FONT:10pt tahoma">
<div><font size="3" face="Calibri">now, that’s just my understand on how I got
things to work properly for my theme; if someone has information on
the template hierarchy substitute that would be peachy.</font></div>
<div><font size="3" face="Calibri"></font> </div>
<div><font size="3" face="Calibri">(mind you that is WITHOUT changing the
template for the home page just not having the blog loop there and moving it
to it’s own subpage)</font></div>
<div><font size="3" face="Calibri"></font> </div>
<div><font size="3" face="Calibri"></font> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="joan@boluda.com" href="mailto:joan@boluda.com" target="_blank">Joan Boluda</a> </div>
<div><b>Sent:</b> Saturday, July 05, 2014 4:55 AM</div>
<div><b>To:</b> <a title="theme-reviewers@lists.wordpress.org" href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">Discussion
list for WordPress theme reviewers.</a> </div>
<div><b>Subject:</b> Re: [theme-reviewers] Is Blog.php is allowed in
theme?</div></div></div>
<div> </div></div>
<div style="FONT-STYLE:normal;DISPLAY:inline;FONT-FAMILY:'Calibri';COLOR:#000000;FONT-SIZE:small;FONT-WEIGHT:normal;TEXT-DECORATION:none">
<div dir="ltr">You're welcome! :)</div>
<div class="gmail_extra">
<div>
<div> </div>
<div>
<div> </div>
<div><b>J</b><b>oan Boluda</b></div>
<div><i>Consultor de Marketing Online</i></div>
<div><a href="http://boluda.com/" target="_blank">http://boluda.com</a></div>
<div> </div></div><br><br></div>
<div>
<div>
<div class="gmail_quote">On Sat, Jul 5, 2014 at 1:32 PM, Alex Lizar <span dir="ltr"><<a href="mailto:lizarweb@gmail.com" target="_blank">lizarweb@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr">Thanks Allot .It helped like a charm.
<div> </div>
<div>Great Weekend you too :)</div></div>
<div class="gmail_extra">
<div>
<div> </div>
<div>
<div dir="ltr">
<div>
<div><b>Best Regards</b><br></div><b>Weblizar<br></b></div><b>Follow Us:
<a href="https://twitter.com/weblizar" target="_blank">Twitter</a> | <a href="https://www.facebook.com/pages/Weblizar/1440510482872657" target="_blank">Facebook</a> | <a href="https://plus.google.com/u/0/100920322672659513870/" target="_blank">Google+</a> | <a href="http://in.linkedin.com/pub/weblizar-premium-themes-plugins/99/3bb/460" target="_blank">Linkedin</a></b> | <b><a href="http://www.pinterest.com/lizarweb/" target="_blank">Pinterest</a></b><br>
</div></div><br><br></div>
<div>
<div>
<div class="gmail_quote">On Sat, Jul 5, 2014 at 4:38 PM, Joan Boluda <span dir="ltr"><<a href="mailto:joan@boluda.com" target="_blank">joan@boluda.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Not recommended: <span></span><a href="https://make.wordpress.org/themes/2014/06/28/correct-handling-of-static-front-page-and-custom-blog-posts-index-template/" target="_blank">https://make.wordpress.org/themes/2014/06/28/correct-handling-of-static-front-page-and-custom-blog-posts-index-template/</a>
<div>
<div><br><br>On Saturday, July 5, 2014, Alex Lizar <<a href="mailto:lizarweb@gmail.com" target="_blank">lizarweb@gmail.com</a>> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr">Thank you Sir,
<div> </div>
<div>Can I use blog.php as a template here?</div></div>
<div class="gmail_extra">
<div> </div>
<div>
<div dir="ltr">
<div>
<div><b>Best Regards</b><br></div><b>Weblizar<br></b></div><b>Follow
Us: <a href="https://twitter.com/weblizar" target="_blank">Twitter</a> |
<a href="https://www.facebook.com/pages/Weblizar/1440510482872657" target="_blank">Facebook</a> | <a href="https://plus.google.com/u/0/100920322672659513870/" target="_blank">Google+</a> | <a href="http://in.linkedin.com/pub/weblizar-premium-themes-plugins/99/3bb/460" target="_blank">Linkedin</a></b> | <b><a href="http://www.pinterest.com/lizarweb/" target="_blank">Pinterest</a></b><br>
</div></div><br><br>
<div class="gmail_quote">On Sat, Jul 5, 2014 at 4:18 PM, Joan Boluda
<span dir="ltr"><<a>joan@boluda.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr">Hi Alex!
<div> </div>
<div>Home page and Front page info -> <a href="http://www.chipbennett.net/2013/09/14/home-page-and-front-page-and-templates-oh-my/" target="_blank">http://www.chipbennett.net/2013/09/14/home-page-and-front-page-and-templates-oh-my/</a></div>
<div> </div>
<div>Great weekend! :)</div></div>
<div class="gmail_extra">
<div> </div>
<div>
<div> </div>
<div><b>J</b><b>oan Boluda</b></div>
<div><i>Consultor de Marketing Online</i></div>
<div><a href="http://boluda.com/" target="_blank">http://boluda.com</a></div>
<div> </div></div><br><br>
<div class="gmail_quote">
<div>
<div>On Sat, Jul 5, 2014 at 12:46 PM, Alex Lizar <span dir="ltr"><<a>lizarweb@gmail.com</a>></span>
wrote:<br></div></div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div>
<div>
<div dir="ltr">Hello all,
<div> </div>
<div>I have a confusion on blog.php ? What I want is to show my
blog posts on a specific page on menu.</div>
<div> </div>
<div>And my sites home page populated using front-page.php ?</div>
<div> </div>
<div>I have gone through the reading setting option ,But could not
get the solution .</div>
<div> </div>
<div>I need a solution or suggestions.</div>
<div>
<div> </div>
<div>
<div dir="ltr">
<div>
<div><b>Best
Regards</b><br></div><b>Weblizar<br></b></div><b>Follow Us: <a href="https://twitter.com/weblizar" target="_blank">Twitter</a> | <a href="https://www.facebook.com/pages/Weblizar/1440510482872657" target="_blank">Facebook</a> | <a href="https://plus.google.com/u/0/100920322672659513870/" target="_blank">Google+</a> | <a href="http://in.linkedin.com/pub/weblizar-premium-themes-plugins/99/3bb/460" target="_blank">Linkedin</a></b> | <b><a href="http://www.pinterest.com/lizarweb/" target="_blank">Pinterest</a></b><br>
</div></div></div></div>
<div> </div></div></div>_______________________________________________<br>theme-reviewers
mailing list<br><a>theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div>
<div> </div></div><br>_______________________________________________<br>theme-reviewers
mailing list<br><a>theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div>
<div> </div></div></blockquote><br><br></div></div>-- <br>
<div>
<div>
<div> </div>
<div><b>J</b><b>oan Boluda</b></div>
<div><i>Consultor de Marketing Online</i></div>
<div><a href="http://boluda.com/" target="_blank">http://boluda.com</a></div>
<div> </div>
<div> </div></div></div><br>_______________________________________________<br>theme-reviewers
mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div>
<div> </div></div></div></div><br>_______________________________________________<br>theme-reviewers
mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div>
<div> </div></div></div></div>
<div>
<div>
<hr>
_______________________________________________<br>theme-reviewers mailing
list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</div></div></div></div></div></div><br>_______________________________________________<br>theme-reviewers
mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div>
<div> </div></div>
<hr>
_______________________________________________<br>theme-reviewers mailing
list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</div></div></div></div></div></div><br>_______________________________________________<br>theme-reviewers
mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div>
<div> </div></div>
<p>
</p><hr>
_______________________________________________<br>theme-reviewers mailing
list<br><a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<p></p></div></div></div></div></div></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>