WordPress.org

Support

Support » Plugins and Hacks » Toolset Types » [Plugin: Types – Custom Fields and Custom Post Types Management] Use function to display custom fiel

[Plugin: Types – Custom Fields and Custom Post Types Management] Use function to display custom fiel

  • I am trying to use a function to display custom field, but nothing shows. I can display the field if I insert the echo code directly in the page template.

    With function below, the paragraph and text “tt” show up, but no field data. Does your plugin get added to wordpress post meta?

    function movie_director($content) {
    	global $post;
        $director = get_post_meta($post->ID, 'directors', true);
        if ( 'movies' == get_post_type() )	{
        return $content . '<p>' . $director . 'tt</p>';
        } else	{
    	return $content;
       }
    }

    http://wordpress.org/extend/plugins/types/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Types – Custom Fields and Custom Post Types Management] Use function to display custom fiel’ is closed to new replies.
Skip to toolbar