Title: Plugin Custom Fields
Last modified: August 19, 2016

---

# Plugin Custom Fields

 *  [downfast](https://wordpress.org/support/users/downfast/)
 * (@downfast)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-custom-fields/)
 * Hi
    this code used to work with previous version of wordpress and custom field
   plug in but not working with latest version of wp and CF.
 * Code:
 *     ```
       <?php $key_2_value = get_post_meta($page_id, 'Mid season', true);
       print $key_2_value; ?>
       ```
   
 * Any idea?

Viewing 1 replies (of 1 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-custom-fields/#post-1411314)
 * If in a [Loop](http://codex.wordpress.org/The_Loop) try:
 *     ```
       <?php
       $key_2_value = get_post_meta($post->ID, 'Mid season', true);
       echo $key_2_value;
       ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Plugin Custom Fields’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-custom-fields/#post-1411314)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
