2013-04-29, 22:13:26
(2013-04-29, 19:57:25)mvlcek Wrote:(2013-04-29, 18:43:38)zintonio Wrote: ...
I create a component theme called "test" as follow:
<label for="name" label="" style=<?php get_custom_field('mylabel'); ?>>Name</label>
And I create a custom field like this:
Name: mylabel
Label: clear: left;float: left;padding:3px 10px 2px;text-align: right;width: 180px
Type: Long text field
...
You are missing the quotes around the style attribute:
Code:<label for="name" label="" style="<?php get_custom_field('mylabel'); ?>">Name</label>
Thanks for reply,
It works only if I create a special page (with plugin I18N Special Pages). If I have a normal Page created before, nothing happen when I insert {% test %} although I insert the quotes to style="<?php get_custom_field('mylabel'); ?>". So my question is: why get_custom_field doesn't work in normal page? How can i solve?
Thanks in advance