help me i want to create a custom post type where i can add user details and show it in a page with shortcode

Question

help me i want admin to be able to add user accounts (subscriber) with the user form in a custom post type then i will show it with a shortcode in a page the user details when the user visit that page.
here is my code

function dwwp_add_custom_metabox(){

add_meta_box(
‘dwwp_meta’,
__( ‘Job Listing’ ),
‘dwwp_meta_callback’,
‘job’,
‘normal’
);

}
add_action(‘add_meta_boxes’, ‘dwwp_add_custom_metabox’);

function dwwp_meta_callback( $post ){

if ( current_user_can( ‘create_users’ ) ) {
if ( $do_both ) {
echo ” . __( ‘Add New User’ ) . ”;
}
?>

>

>

” aria-required=”true” autocapitalize=”none” autocorrect=”off” maxlength=”60″ />

” />

” />

” />

” />

” aria-describedby=”pass-strength-result” />

“>

“>

/>

/>

‘createusersub’ ) ); ?>

0
, Maxwell David 3 years 2020-06-07T12:10:26-05:00 0 Answers 88 views 0

Leave an answer

Browse
Browse