Posted By

mesh606 on 08/23/11



Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


better wordpress custom fields

 / Published in: PHP

declare all custom fields first

  1. <?php global $post;
  2. $bg_img = get_post_meta($post->ID, 'bgimg', 1);
  3. $heading = get_post_meta($post->ID, 'mainheading', 1);?>
  5. <div class="int-head-pic" style="background:url(<?php echo $bg_img; ?>) no-repeat;" >
  6. <h2 class="mainheading"><?php echo $heading; ?></h2>

Report this snippet  


RSS Icon Subscribe to comments
Posted By: on January 14, 2019

download best software to android root use app kingo or 360 for pc mac ios windows 10 8 1 7 xp computer [softwareking]( wifi password view without root.html)

You need to login to post a comment.