[theme-reviewers] Is Blog.php is allowed in theme?

Chip Bennett chip at chipbennett.net
Sat Jul 5 14:40:16 UTC 2014


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())?

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.

Post loops *other* than the blog posts index would use other templates.


On Sat, Jul 5, 2014 at 8:03 AM, Philip M. Hofer (Frumph) <philip at frumph.net>
wrote:

>   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)
>
> 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
>
>  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.
>
> (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)
>
>
>  *From:* Joan Boluda <joan at boluda.com>
> *Sent:* Saturday, July 05, 2014 4:55 AM
> *To:* Discussion list for WordPress theme reviewers.
> <theme-reviewers at lists.wordpress.org>
> *Subject:* Re: [theme-reviewers] Is Blog.php is allowed in theme?
>
>  You're welcome! :)
>
>
> *J**oan Boluda*
> *Consultor de Marketing Online*
> http://boluda.com
>
>
>
> On Sat, Jul 5, 2014 at 1:32 PM, Alex Lizar <lizarweb at gmail.com> wrote:
>
>> Thanks Allot .It helped like a charm.
>>
>> Great Weekend you too :)
>>
>>   *Best Regards*
>>
>> *Weblizar*
>> *Follow Us: Twitter <https://twitter.com/weblizar> | Facebook
>> <https://www.facebook.com/pages/Weblizar/1440510482872657> | Google+
>> <https://plus.google.com/u/0/100920322672659513870/> | Linkedin
>> <http://in.linkedin.com/pub/weblizar-premium-themes-plugins/99/3bb/460>*
>> | *Pinterest <http://www.pinterest.com/lizarweb/>*
>>
>>
>>  On Sat, Jul 5, 2014 at 4:38 PM, Joan Boluda <joan at boluda.com> wrote:
>>
>>> Not recommended:
>>> https://make.wordpress.org/themes/2014/06/28/correct-handling-of-static-front-page-and-custom-blog-posts-index-template/
>>>
>>>
>>> On Saturday, July 5, 2014, Alex Lizar <lizarweb at gmail.com> wrote:
>>>
>>>> Thank you Sir,
>>>>
>>>> Can I use blog.php as a template here?
>>>>
>>>>   *Best Regards*
>>>>
>>>> *Weblizar*
>>>> *Follow Us: Twitter <https://twitter.com/weblizar> | Facebook
>>>> <https://www.facebook.com/pages/Weblizar/1440510482872657> | Google+
>>>> <https://plus.google.com/u/0/100920322672659513870/> | Linkedin
>>>> <http://in.linkedin.com/pub/weblizar-premium-themes-plugins/99/3bb/460>*
>>>> | *Pinterest <http://www.pinterest.com/lizarweb/>*
>>>>
>>>>
>>>> On Sat, Jul 5, 2014 at 4:18 PM, Joan Boluda <joan at boluda.com> wrote:
>>>>
>>>>> Hi Alex!
>>>>>
>>>>> Home page and Front page info ->
>>>>> http://www.chipbennett.net/2013/09/14/home-page-and-front-page-and-templates-oh-my/
>>>>>
>>>>> Great weekend! :)
>>>>>
>>>>>
>>>>> *J**oan Boluda*
>>>>> *Consultor de Marketing Online*
>>>>> http://boluda.com
>>>>>
>>>>>
>>>>>
>>>>>  On Sat, Jul 5, 2014 at 12:46 PM, Alex Lizar <lizarweb at gmail.com>
>>>>> wrote:
>>>>>
>>>>>>  Hello all,
>>>>>>
>>>>>> I have a confusion on blog.php ? What I want is to show my blog posts
>>>>>> on a specific page on menu.
>>>>>>
>>>>>> And my sites home page populated using front-page.php ?
>>>>>>
>>>>>> I have gone through the reading setting option ,But could not get the
>>>>>> solution .
>>>>>>
>>>>>> I need a solution or suggestions.
>>>>>>
>>>>>>   *Best Regards*
>>>>>>
>>>>>> *Weblizar*
>>>>>> *Follow Us: Twitter <https://twitter.com/weblizar> | Facebook
>>>>>> <https://www.facebook.com/pages/Weblizar/1440510482872657> | Google+
>>>>>> <https://plus.google.com/u/0/100920322672659513870/> | Linkedin
>>>>>> <http://in.linkedin.com/pub/weblizar-premium-themes-plugins/99/3bb/460>*
>>>>>> | *Pinterest <http://www.pinterest.com/lizarweb/>*
>>>>>>
>>>>>> _______________________________________________
>>>>>> theme-reviewers mailing list
>>>>>> theme-reviewers at lists.wordpress.org
>>>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> theme-reviewers mailing list
>>>>> theme-reviewers at lists.wordpress.org
>>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *J**oan Boluda*
>>> *Consultor de Marketing Online*
>>> http://boluda.com
>>>
>>>
>>>
>>> _______________________________________________
>>> theme-reviewers mailing list
>>> theme-reviewers at lists.wordpress.org
>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>
>>>
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>
> ------------------------------
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
> _______________________________________________
> 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/20140705/16520745/attachment-0001.html>


More information about the theme-reviewers mailing list