• Resolved Imenicaa

    (@imenicaa)


    Hello folks!

    I have a custom field type that i use for my testimonials page, and it goes like this:

    /* Testimonial */
    function my_post_type_testi() {
    	register_post_type( 'testi',
    		array(
    				'label'             => theme_locals("testimonial"),
    				'public'            => true,
    				'show_ui'           => true,
    				'show_in_nav_menus' => false,
    				'menu_position'     => 5,
    				'rewrite'           => array(
    					'slug'       => 'testimonials',
    					'with_front' => FALSE,
    				),
    				'supports' => array(
    						'title',
    						'custom-fields',
    						'thumbnail',
    						'editor')
    					)
    				);
    }

    I was wondering how can i show entries from this page in widget on my site sidebar?

    Any help would be appreciated 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Custom field to widget’ is closed to new replies.