CSS per Custom Field einfügen

10 Mai 2011
webdesign & programmierung placeholder

Zusätzlich ein paar CSS-Anweisungen für einen WordPress-Artikel hinzufügen.
Die Beschreibung dazu findet ihr im Originalpost: http://www.smashingmagazine.com/2009/05/13/10-custom-fields-hacks-for-wordpress/
<?php if (is_single()) {
$css = get_post_meta($post->ID, ‘css’, true);
if (!empty($css)) { ?>
<style type=”text/css”>
<?php echo $css; ?>
<style>
<?php }
} ?>