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 PODS and display posts Reply To: PODS and display posts


Thanks for the video!

WP Show Posts isn’t “smart” enough to detect custom fields for post types, unfortunately.

What you’d need to do is hook those custom fields into the posts.

For example, if you had a custom field with my_custom_field as the name, you could do this:

add_action( 'wpsp_after_title', function( $settings ) {
    if ( 123 === $settings['list_id'] ) {
        $custom_field = get_post_meta( get_the_ID(), 'my_custom_field', true );

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

So this checks for the list ID, and then adds the value from your specified custom field after the title if it exists.

Not overly easy, but quite powerful once you get the functions going.

Let me know if that helps at all 🙂