Quote:The plugin support I18N, I18N Custom Fields and I18N Special Pages (exception: the code to add custom header content for the special page will not be processed).
Hi Thanks for the OnePage plugin! But I don't get it using the custom fields plugin. When I loop through the pages and try to output custom-field-contents from subpages, it does not give the stored value back. The custom-fields var is and stays filled by the mother-page custom-field content. Is there a chance to get the contents of the actual outputted subpage custom field?
I think I'm doing something wrong. But what?!
Code:
<?php while (next_onepage_content()) { ?>
<section class="wrapper <?php get_custom_field('SectionStyle'); ?>">
<div class="row">
<h2><?php get_onepage_anchor(); ?><?php get_page_title(); ?></h2>
</div>
<div class="row">
<?php get_page_content(); ?>
</div>
</section>
<?php } ?>
The custom-field "SectionStyle" should get a string from the current printed "onepage-subpage". I just want to add an individual style to the section.
Any hints? Please
---
Addition: Aehm, sorry The custom fields have to be lower-case. Mine was a mixture "SectionStyle" - after changing the source to lower case, everything runs fine now.