I have a website in which I can show posts with all the same labels. Is there a way to make the label as the header when showing all the posts with the same label.
For exa
Just replace //label header here plz
with <data:blog.searchLabel/>
, this data Tag returns the current filtered label.
It cloud look, like this:
...
<div class='status-msg-wrap'>
<div class='status-msg-body'>
...
<span style="text-transform: capitalize;"><data:blog.searchLabel/></span>
...
</div>
<div class='status-msg-border'>
<div class='status-msg-bg'>
<div class='status-msg-hidden'><data:navMessage/></div>
</div>
</div>
...
The wrapping
span
is set only so that we can set the css propertytext-transform
tocapitalize
, since I Like my headers capitalized.