We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Custom Fields Reply To: Custom Fields

#220
Tom
Keymaster

Hi David,

It’s already possible with some PHP.

For example:

add_action( 'wpsp_before_content', function( $settings ) {
    if ( 123 === $settings['list_id'] ) {
        $meta = get_post_meta( get_the_ID(), '_your_custom_meta_key', true );

        if ( $meta ) {
            echo $meta;
        }
    }
} );

These are the available hooks we can “hook” content into:

wpsp_before_wrapper
wpsp_before_header
wpsp_before_title
wpsp_after_title
wpsp_before_content
wpsp_after_content
wpsp_after_wrapper

More will be added as time goes on 🙂

Let me know if you need more info.