juz wiem:
chowanie custom field dla wordpress
dostajemy specjalne pole
text: wartosc pola o nazwie $pole
jesli custom field jest puste to nic sie nie pokaze nawet text:
chowanie custom field dla wordpress
Kod PHP:
<?php if ( get_post_meta($post->ID, 'pole', true) ) { ?><strong>text</strong><?php echo get_post_meta($post->ID, "pole", $pole= true); ?><?php } ?>
dostajemy specjalne pole
text: wartosc pola o nazwie $pole
jesli custom field jest puste to nic sie nie pokaze nawet text: