Displaying custom meta box value in a custom post page

// For Movie Template Page <?php /* * Template Name: Movie Page * * */ get_header(); $args = array( ‘post_type’=>’movie’, ); $m_title = new WP_Query( $args ); ?> <?php if ( $m_title->have_posts() ) : ?> <!– the loop –> <?php while ( $m_title->have_posts() ) : $m_title->the_post(); ?> <?php $get_m_title = get_post_meta(get_the_ID(), ‘_movie_title’, true); ?> <h1>Movie … Read more

Add a custom user meta data on registration based on user email

If this is being run when you register a user, then you could just grab the email used in creating the user as it is contained in the second argument that is passed to user_register which is $userdata. See https://developer.wordpress.org/reference/hooks/user_register/ Note that to provide you with an example that would actually result in something useable, … Read more