Blogger Introduced New Template Conditional Tags This Year

Blogger had introduced new template conditional tags this year. Each and every conditional tags are self explanatory and easy to understand. I have added two versions below to make it easy to identify old and new conditional tags.

Home Page Conditional Tags

New version

<b:if cond='data:view.isHomepage'> … </b:if>

Old version

<b:if cond='data:blog.url == data:blog.homepageUrl'> … </b:if>

Index Pages Conditional Tags

New version

<b:if cond='data:view.isMultipleItems'> … </b:if>

Old version

<b:if cond='data:blog.pageType == "index"'> … </b:if>

Single Item Page Tags

New version

<b:if cond='data:view.isSingleItem'> … </b:if>

Old version

<b:if cond='data:blog.pageType in ["item", "static_page"]'> … </b:if>

Posting Pages Conditional Tags

New version

<b:if cond='data:view.isPost'> … </b:if>

Old version

<b:if cond='data:blog.pageType == "item"'> … </b:if>

Static Page Conditional Tags

New version

<b:if cond='data:view.isPage'> … </b:if>

Old version

<b:if cond='data:blog.pageType == "static_page"'> … </b:if>

Label Tag Conditional Tags

New version

<b:if cond='data:view.isLabelSearch'> … </b:if>

Old version

<b:if cond='data:blog.searchLabel'> … </b:if>

Archive Pages Conditional Tags

New version

<b:if cond='data:view.isArchive'> … </b:if>

Old version

<b:if cond='data:blog.pageType == "archive"'> … </b:if>

Search Page Conditional Tags

New version

<!-- Includes label search page --> <b:if cond='data:view.isSearch'> … </b:if> <!-- Search pages only --> <b:if cond='data:view.isSearch and !data:view.isLabelSearch'> … </b:if>

Old version

<b:if cond='data:blog.searchQuery'> … </b:if>

Error Pages Conditional Tags

New version

<b:if cond='data:view.isError'> … </b:if>

Old version

<b:if cond='data:blog.pageType == "error_page"'> … </b:if>

Preview Page Conditional Tags

New version

<b:if cond='data:view.isPreview'> … </b:if>
e8e19294f401b1269489c0033aee5047?s=100&d=mm&r=g - Blogger Introduced New Template Conditional Tags This Year

Founder of HinduGeek, WordPress Developer, Blogger, and Tech Enthusiast.