<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>@otto</DIV>
<DIV> </DIV>
<DIV><A title=https://core.trac.wordpress.org/ticket/28763#ticket
href="https://core.trac.wordpress.org/ticket/28763#ticket">https://core.trac.wordpress.org/ticket/28763#ticket</A></DIV>
<DIV> </DIV>
<DIV>I wrote up a ticket about it, if this helps clarify a little; you know me –
really bad at articulating my point in some cases.</DIV>
<DIV> </DIV>
<DIV>The idea is that both the front page and posts set page are registering as
is_home() when no posts page is set so regardless of which usage of is_home()
is_front_page() is used that those events get executed – as you stated. </DIV>
<DIV> </DIV>
<DIV>So as I wrote in the ticket, if nothing is selected for showing front page
that it should default to assign itself as is_front_page() if posts page was
selected; which would fix that imo.</DIV>
<DIV> </DIV>
<DIV>i.e the whole reason I use a page template, since the home/landing page
doesn’t really imo need to be set (but according to you folk you say “you’re
doing it wrong”) .. but no.. I’m not, it’s part of the system to allow it and
after talking with a few others that’s how they believe it worked as well. – so
instead of ‘you’re doing it wrong’ .. let’s fix it so that it’s a viable
option.</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 style="font-color: black"><B>From:</B> <A title=otto@ottodestruct.com
href="mailto:otto@ottodestruct.com">Otto</A> </DIV>
<DIV><B>Sent:</B> Saturday, July 05, 2014 7:00 PM</DIV>
<DIV><B>To:</B> <A title=theme-reviewers@lists.wordpress.org
href="mailto:theme-reviewers@lists.wordpress.org">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>I have no idea what you're talking about.
<DIV> </DIV>
<DIV>The correct way:</DIV>
<DIV> </DIV>
<DIV>1. Create two Pages, one with what you want for the front-page content,
another with no content and simply named "blog" or whatever you want the URL to
me.</DIV>
<DIV> </DIV>
<DIV>2. Go to Settings->Reading and assign the static page settings to show
the Posts on your blog page and the Page content you want on the front
page.</DIV>
<DIV> </DIV>
<DIV>3. There is no three.</DIV>
<DIV> </DIV>
<DIV>That's literally all you have to do. No messing with files of any sort. You
don't need to copy index.php to anything else at all. That's the whole point of
the Loop, it can display any content, whether it is a Page or a series of
Posts.</DIV>
<DIV> </DIV>
<DIV>- If the theme wants to display the Front Page differently from the
"default" view in index.php, then it should use a front-page.php to do
that.</DIV>
<DIV>- If the theme wants to display the "blog" differently from the "default"
view in index.php, then it should use a home.php to do that.</DIV>
<DIV> </DIV>
<DIV>There's no real case where you'd want to do both of these, but if you did,
then a simple if (is_home()) check in the front-page.php could do the trick for
you. </DIV>
<DIV> </DIV>
<DIV>Basically, you're making things overcomplicated for the user. The theme
should do it without asking the user to do anything special like messing with
Page Templates. They should simply select what they want, through the core
settings, and have that happen properly. Your way does not do that
properly.</DIV>
<DIV> </DIV>
<DIV class=gmail_extra>
<DIV>-Otto</DIV><BR><BR>
<DIV class=gmail_quote>On Sat, Jul 5, 2014 at 4:01 PM, 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 the tech support conversations to enable someone to have a blog
on a separate page, comparison.</DIV>
<DIV> </DIV>
<DIV>Scenario 1 (your considered “proper” way)</DIV>
<DIV> </DIV>
<DIV>1. First, FTP into your site. Yes, FTP; you can watch some
youtube video’s on learning how to ftp. Contact your hosting to get your
info properly.</DIV>
<DIV> </DIV>
<DIV>2. Navigate to the wp-content/themes/yourthemename/ and copy the
index.php and name is front-page.php .. yes, copy.. yes, you need to first
move the index.php file to your local drive then .. you don’t know how to do
that? okay let me explain ... ( 5 mins later )</DIV>
<DIV> </DIV>
<DIV>3. Okay now that you have that, you can go to settings –> reading and
enable the posts page to be a page you created, .. okay yeah so create a page
yes, a page .. you’ll need to create 2 pages, call one “Home” and the other
“Blog” (or) “posts page” </DIV>
<DIV> </DIV>
<DIV>4. Okay you did that? fine, set those in the settings –> reading,
choose which pages you want to display where.</DIV>
<DIV> </DIV>
<DIV>5. Cool beans, you’re done. What? That plugin you paid $50
for is displaying on the posts page too? .. I’m sorry you’re going to
have to take that up with that plugin maker. Oh, that one
too? damn people don’t know how to program.</DIV>
<DIV> </DIV>
<DIV>6. I realize that it’s pretty complicated, but that’s the way the theme
review team wants to have it done, I apologize profusely.</DIV>
<DIV> </DIV>
<DIV>--------------------------------------------</DIV>
<DIV> </DIV>
<DIV>Scenario 2:</DIV>
<DIV> </DIV>
<DIV>1. Go to pages –> add new and create a blog page, in the
right column associate the “blog” template to it. </DIV>
<DIV> </DIV>
<DIV>2. Go to the theme settings and disable the blog loop from appearing on
the home page.</DIV>
<DIV> </DIV>
<DIV>3. You’re welcome!</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>---------------------------------</DIV>
<DIV> </DIV>
<DIV>Yeah, rather stick with my method.</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></FONT> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV><B>From:</B> <A title=otto@ottodestruct.com
href="mailto:otto@ottodestruct.com" target=_blank>Otto</A> </DIV>
<DIV><B>Sent:</B> Saturday, July 05, 2014 1:20 PM</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>Okay, that's not a theme template, that is a Custom Page Template
with a custom loop, and no, that sort of thing should not be allowed in any
theme in the WordPress.org theme directory. In short, that is an incorrect way
to show the main blog posts on a page.
<DIV> </DIV>
<DIV>There's nothing wrong with making Custom Page Templates to show special
things, but the "main blog" is not a "special thing"... and it is correctly
handled by the core Template Hierarchy. The home.php file should be what you
use to display the blog posts, and you should not have a custom query in it
like that.</DIV>
<DIV> </DIV>
<DIV>The reason that is wrong is because it doesn't correctly support the core
functionality for setting a Page to appear on the front-page, and for the blog
posts to appear on a sub-page. With this implementation, somebody has to make
a Page and also set it to be using this Page Template, and then also set the
Settings->Reading settings incorrectly as well. </DIV>
<DIV> </DIV>
<DIV>See, if you have the Settings->Reading settings set correctly, with
both the Front and Posts pages set to some values, then it is not possible for
the Page to use your custom Page Template. So your "blog.php" here will not
get used unless you also instruct the user to set up the site incorrectly
(aka, incompletely). The correct way is to use the home.php to do a normal
Blog loop, and then that will be used no matter where the blog posts are
displayed, as long as the site is set up correctly.</DIV>
<DIV class=gmail_extra>
<DIV> </DIV>
<DIV>-Otto</DIV><BR><BR>
<DIV class=gmail_quote>On Sat, Jul 5, 2014 at 1:13 PM, 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>it’s a template that themes have that do the blog loop that can be
associated to a page, either custom for specific categories are all</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>“there’s no way to display it using any other
template file”</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><FONT size=3 face=Calibri>This is what I use, works fine:</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><?php</DIV>
<DIV>/*</DIV>
<DIV>Template Name: Blog</DIV>
<DIV>*/</DIV>
<DIV>get_header();</DIV>
<DIV> </DIV>
<DIV>$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;</DIV>
<DIV> </DIV>
<DIV>$blog_query = array(</DIV>
<DIV> 'paged' => $paged,</DIV>
<DIV> 'post_type' =>
'post',</DIV>
<DIV> 'in_the_loop' =>
true,</DIV>
<DIV> 'posts_per_page' =>
comicpress_themeinfo('home_post_count')</DIV>
<DIV> );</DIV>
<DIV> </DIV>
<DIV>$wp_query = new WP_Query(); $wp_query->query($blog_query);</DIV>
<DIV>if (have_posts()) {</DIV>
<DIV> while (have_posts()) : the_post();</DIV>
<DIV> $withcomment = 0;</DIV>
<DIV> get_template_part('content',
get_post_format());</DIV>
<DIV> endwhile;</DIV>
<DIV> comicpress_pagination();</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>wp_reset_query();</DIV>
<DIV> </DIV>
<DIV>get_footer();</DIV>
<DIV> </DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV><B>From:</B> <A title=otto@ottodestruct.com
href="mailto:otto@ottodestruct.com" target=_blank>Otto</A> </DIV>
<DIV><B>Sent:</B> Saturday, July 05, 2014 11:00 AM</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
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV>
<DIV>
<DIV dir=ltr>
<DIV class=gmail_extra>
<DIV class=gmail_quote>On Sat, Jul 5, 2014 at 12:48 PM, 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: rgb(204,204,204) 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: rgb(0,0,0); FONT-SIZE: 12pt">
<DIV>The blog template is the point I was making in the first place, where
if you do *not* want the is_home or is_front_page events to execute, that
is the only way to bypass that; which makes having a blog.php
useful.</DIV>
<DIV> </DIV></DIV></DIV></DIV></BLOCKQUOTE>
<DIV> </DIV>No, I mean, there is nothing in the code that I can find
for "blog.php" at all. It's not mentioned in the Template Hierarchy, there's
nothing in the template.php core file that mentions it. So, what exactly is
this "blog.php" to which you refer?
<DIV> </DIV>
<DIV>As far as I know, if you're displaying the results of the main posts
query, then you're doing it on front-page.php, home.php, or index.php.
There's no way to display it using any other template file.</DIV>
<DIV class=gmail_extra>
<DIV> </DIV>
<DIV>-Otto</DIV></DIV>
<DIV> </DIV></DIV></DIV></DIV></DIV></DIV>
<HR>
<DIV>_______________________________________________<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><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>
<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">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>
<P>
<HR>
_______________________________________________<BR>theme-reviewers mailing
list<BR>theme-reviewers@lists.wordpress.org<BR>http://lists.wordpress.org/mailman/listinfo/theme-reviewers<BR></DIV></DIV></DIV></BODY></HTML>