Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter lorenzoporretti

    (@lorenzoporretti)

    Ok sorry for the post type is ok! I use: [wpuf_addpost post_type=”event”]
    But for Custom Meta Box?

    Plugin Author Tareq Hasan

    (@tareq1988)

    you can enable custom fields and can take inputs from the user from the frontend post form. Custom meta box are for the admin panel, isn’t it?

    Hi Tareq
    Thank you for great plugin. I want user can upload multiple images, music and videos. That why I need custom attachment field. And this plugin has a attachment but this is not working, and when I enable Featured Image field with attachment, featured image is not working what is the solutions please help me

    Thread Starter lorenzoporretti

    (@lorenzoporretti)

    ok in my theme i use this:
    // Include & setup custom metabox and fields

    $prefix = '_ct_'; // start with an underscore to hide fields from custom fields list
    add_filter( 'cmb_meta_boxes', 'ct_metaboxes' );
    function ct_metaboxes( $meta_boxes ) {
    	global $prefix;
    	$meta_boxes[] = array(
    		'id' => 'listing_info',
    		'title' => 'Listing Info',
    		'pages' => array('listings'), // post type
    		'context' => 'normal',
    		'priority' => 'high',
    		'show_names' => false, // Show field names on the left
    		'fields' => array(
    			array(
    				'name' => 'Price',
    				'desc' => 'Enter the price here, without commas or seperators.',
    				'id' => $prefix . 'price',
    				'type' => 'text_money'
    			),

    exc..
    I believe that one problem is the prefix of METABOX, what do you think? and other mistakes you see?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP User Frontend] Use custom post_type function for the posts and meta-box filed’ is closed to new replies.