On my site I have some posts with a custom field "Name". Now, in case the post has "Name" set, I want to generate this code:
where Name after attribution_name refers to the custom field value. For test purpose, I've used this code in the header
But I have two problems. One, the value of the $nameAttribute doesn't get passed through, and secondly, it's ugly :) I think I can manage the value problem, but I'm unsure what would be the "proper" way to output this.