Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tom

    (@edge22)

    Hi there,

    Since you’re using a custom field, it should be possible with a function like this:

    add_action( 'wpsp_before_content', function() {
        $custom_field = get_post_meta( get_the_ID(), '_your_custom_field', true );
    
        if ( $custom_field ) {
            echo $custom_field;
        }
    } );
    Thread Starter Branding Addicted

    (@brandingaddicted)

    Hi Tom,
    thanks for your answer πŸ™‚
    Before to write you again, I read some docs about video post format but i didn’t understand:

    1) have i to put this function in /wp-content/plugins/wp-show-posts/inc/functions.php ?
    2) in the function there is ‘_your_custom_field’: where i could get it? I don’t know how to customize this function πŸ™

    Could you explain more please?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Video format post: how to show?’ is closed to new replies.