Hi Jamal, thank you for your reply!
Okay let's see if I'm understanding:
I've tried running a snippet like this one -
add_shortcode( 'global_test', function () {
$jobpost = types_render_field ('organization-name, true');
return $jobpost;
} );
but I haven't been able to display this content.
I also tried a snippet like this for the Twitter message:
function set_jetpack_publicize_default_message() {
global $post;
if ( ! empty( $post->ID ) ) {
if ( ! $wpas_title = get_post_meta( $post->ID, '_wpas_mess', true ) ) {
/* translators: %s: the name of the blog */
$org_name = get_post_meta($post_id, 'wpcf-organization-name', true);
$job_title = get_post_meta($post_id, $post_title, true);
$format = '%d is hiring a %f!';
$custom_message = sprintf(
__( $format, $org_name, $job_title,
'set-jetpack-publicize-default-message'
),
get_bloginfo( 'name' )
);
update_post_meta( $post->ID, '_wpas_mess', $custom_message );
}
}
}
add_action( 'post_submitbox_misc_actions', 'set_jetpack_publicize_default_message' );
I can't figure out what I'm doing wrong...
In the above snippet, under $format - the "is hiring a " did show up in the Twitter message so that's a great start but it didn't pick up my other variables. Is it possible my fields aren't registered as post meta? I'm including a screenshot of what should be the meta key. I appreciate your help.