nhadatsonnghia
nhadatsonnghia

Reputation: 119

Define the label number in blogger xml

Is it possible to get one of the many labels of a post with <data:post.labels> or <data:label.name> in blogspot.

Eg: There are total 5 labels in a post but i want only the 3th label to be displayed. I tried this :

<data:post.labels[3]/>

or 

<data:label[3].name/>

Any suggestions are appreciated!

Thanks so much!

Upvotes: 0

Views: 93

Answers (1)

user6144987
user6144987

Reputation:

You can use b:eval tag

<b:eval expr="data:post.labels[0].name" />

Upvotes: 1

Related Questions