2011-03-16, 06:11:20
mvlcek,
thanks a lot for your i18n-optimised custom fields plugin. I noticed in Extend that it's officially been tested against 2.03, but have you got it working with 3.0b as well?
I'm running a testsite with 3.0b and wanted to play around with a custom field to be put into the body class attribute for context-specific CSS styling. I (think) I followed your instructions successfully, yet nothing is output.
I defined a new field with the name of "site-language" and put the following function call into the body tag, analoguous to the get_page_slug(); call.
I then went to a page and entered some value into the new text field. The result is
If you need more info I'll gladly try to provide it.
Keep up the good work!
thanks a lot for your i18n-optimised custom fields plugin. I noticed in Extend that it's officially been tested against 2.03, but have you got it working with 3.0b as well?
I'm running a testsite with 3.0b and wanted to play around with a custom field to be put into the body class attribute for context-specific CSS styling. I (think) I followed your instructions successfully, yet nothing is output.
I defined a new field with the name of "site-language" and put the following function call into the body tag, analoguous to the get_page_slug(); call.
Code:
<body id="<?php get_page_slug(); ?>" class="<?php get_custom_field(site-language); ?>">
Code:
<body id="some-page" class="">
If you need more info I'll gladly try to provide it.
Keep up the good work!