Forums

Custom Field issue HELP Requried (2 posts)

  1. shariffse
    Member
    Posted 2 years ago #

    Hi,

    I am new all together to this domain and I am trying to build a template. I am using Gravity forms plugin for custom forms.

    I am creating a form where in any employer can post the job free of cost.

    I found the below code and it is working. But my question is how can I display all the custom fields available instead of specifying each custom fields.

    <?php $c_company = get_post_meta($post->ID, "companyname", true);
         echo "<p><b>Company Name :</b> ".$c_company."</p>"; ?>
    <?php $c_skills = get_post_meta($post->ID, "skills", true);
       echo "<p><b>Skills : </b> ".$c_skills."</p>"; ?>
    <?php $c_contactp = get_post_meta($post->ID, "contactPerson", true);
      echo "<p><b>Contact Person :</b> ".$c_contactp."</p>"; ?>

    Your help and comments will highly appreciated.

    Regards

    Annas

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    One option is the_meta(). See Custom Fields for more ideas.

Topic Closed

This topic has been closed to new replies.

About this Topic