Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7833557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:46:07+00:00 2026-06-02T12:46:07+00:00

I would like to be able to access data:post.labels from within the header at

  • 0

I would like to be able to access data:post.labels from within the header at Blogger. I only plan to make use of it when data:blog.pageType == "item", so there won’t be any confusion with regard to multiple posts on a page. However, nothing I have tried has yielded any results. Here’s what I plan to do with the data if I discover a way to get access to it:

<b:if cond='data:blog.pageType == &quot;item&quot;'>
    <b:loop values='data:post.labels' var='label'>
        <b:if cond='label.name == &quot;poetry&quot;'>
            <meta expr:content='&quot;Poem “&quot; + data:blog.pageName + &quot;”&quot; + &quot; at Form and Formlessness&quot;' property='og:title'/>
        </b:if>
        <b:if cond='label.name == &quot;article&quot;'>
            <meta expr:content='&quot;Article “&quot; + data:blog.pageName + &quot;”&quot; + &quot; at Form and Formlessness&quot;' property='og:title'/>
        </b:if>
        <b:if cond='label.name == &quot;lists&quot;'>
            <meta expr:content='&quot;Poem list “&quot; + data:blog.pageName + &quot;”&quot; + &quot; at Form and Formlessness&quot;' property='og:title'/>
        </b:if>
    </b:loop>
</b:if>

All of my posts are either poems, articles on poetry, or poem lists, and labeled appropriately. So, if I can figure out some way to access the labels used by the post, this should work.

Any assistance would be appreciated.

p.s. Don’t worry about the open quotation marks in the code–they’re open and close quotation marks and they work just fine without having to use the Unicode value.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T12:46:12+00:00Added an answer on June 2, 2026 at 12:46 pm

    I spent quite a while looking for a solution some time ago. I finally came to the conclusion (well others advising me did) that data:post.labels is only available within the blog-posts widget: if you’re outside that (eg in the header) it’s not available.

    Someone did suggest some code to populate an array with the labels while in blog-posts, and call it after that. But I never took that any further because really I wanted access to the labels before I reach the post-widget.

    My original discussion was at: http://www.google.com/support/forum/p/blogger/thread?tid=188cd44d0908f736&hl=en

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to be able to automate data entry to an Open Office
I would like to be able to use the same Session variable when transferring
I would like to be able to spawn a linux process that would only
I just want to be able to store and access data from ACCESS,SQLSERVER,SQLCE,SQLLITE based
I am currently able to successfully access and get data from the peoplePickerNavigationController ,
I would like my PHP script to be able to access the width of
I would like to know how can I select <span =data> from the following.
I have a web service that I would like to use from a few
Would like to be able to set colors of headings and such, different font
I would like to be able to change the size of text in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.