Title: php coding / ProjectManager customization
Last modified: August 19, 2016

---

# php coding / ProjectManager customization

 *  [dlfadmin](https://wordpress.org/support/users/dlfadmin/)
 * (@dlfadmin)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/php-coding-projectmanager-customization/)
 * Hey all, I have a question regarding some customization of a plugin called ProjectManager
   I am working on, and it involves a bit of php coding. I am not completely versed
   in php syntax, but am familiar with scripting concepts. I am trying to edit a
   template (the view/table.php template) so that it will display specific form 
   fields from the dataset.
 * The page in question is here;
 * [http://dynastyleaguefootball.com/wp/project](http://dynastyleaguefootball.com/wp/project)
 * I am trying to customize the template so that additional fields from the Form
   Fields input form are displayed for each player.
 * This line of code displays the default value for field name,”Name” –
    `<td class
   ="name"><?php echo $dataset->nameURL ?></td>`
 * So as an example, one of the additional field sI am trying to display is a field
   name I called Team (in the Form Field creation page), which has a Form Field 
   ID of 9. Based on that syntax, I am trying variations of this within the php 
   in the template;
 * `<td class="name"><?php echo $dataset->Team ?></td>` or
    `td class="name"><?php
   echo $dataset->9 ?></td>` etc (and many other variations).
 * Tried a number of different combinations based on some php scripting samples 
   I’ve seen out there, but have not yet had success. I’m wondering if anyone has
   some suggestions for the correct syntax, or if anyone else here has done something
   similar with the ProjectManager plugin.
 * If I’m posting this to the wrong forum, let me know. Any help would be deeply
   appreciated. Thank you!
 * KenM

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [dlfadmin](https://wordpress.org/support/users/dlfadmin/)
 * (@dlfadmin)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/php-coding-projectmanager-customization/#post-1473393)
 * Bumping out of desperation. Any thoughts on this?
 *  [rgilgen](https://wordpress.org/support/users/rgilgen/)
 * (@rgilgen)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/php-coding-projectmanager-customization/#post-1473416)
 *     ```
       <?php
       $dataset_meta = $projectmanager->getDatasetMeta( $dataset->id );
       $meta_values = array();
       foreach ($dataset_meta AS $meta){
           $meta_values[$meta->label] = $meta->value;
       }
       // I assume "Team" is the name of your custom form field.
       echo '<td class="name">' . $meta_values["Team"] . '</td>';
       ?>
       ```
   
 * For the customization I suggest to copy from `wp-content/plugins/projectmanager/
   view/dataset.php` to `wp-content/themes/yourTheme/projectmanager/` and then change
   the content to your needs. The copied file will automatically be used instead
   of the original in the plugins folder.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘php coding / ProjectManager customization’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [rgilgen](https://wordpress.org/support/users/rgilgen/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/php-coding-projectmanager-customization/#post-1473416)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
