Skip to Content
How do I create a custom post type in WordPress?
wordpress code / April 14, 2022
/* Start Testimonials Function*/
function qrs_testimonial_posttype() {
$labels = array(
'name' => _x( 'Testimonials', 'qrs' ),
'singular_name' => _x( 'Testimonial', 'qrs' ),
'add_new' => _x( 'Add New', 'qrs'),
'add_new_item' => __( 'Add New Testimonial' ),
'edit_item' => __( 'Edit Testimonial' ),
'new_item' => __( 'New Testimonial' ),
'all_items' => __( 'All Testimonials' ),
'view_item' => __( 'View Testimonial' ),
'search_items' => __( 'Search Testimonial' ),
'not_found' => __( 'No Testimonial found' ),
'not_found_in_trash' => __( 'No Testimonials found in the Trash' ),
'menu_name' => 'Testimonials'
register_post_type( 'testimonials',
'labels' => $labels,
'public' => true,
'has_archive' => false,
'supports' => array( 'title','editor'),
'rewrite' => array('slug' => 'testimonials'),
'show_in_rest' => true,
add_action( 'init', 'qrs_testimonial_posttype' );
/* End Testimonials Function*/

I need to to thank you for this very good read!! I certainly loved every little bit of it. I have you book-marked to check out new things you postÖ

It’s hard to find educated individuals on this matter, however you sound like you recognize what you’re speaking about! Thanks

Would you be fascinated by exchanging hyperlinks?

Hi! This is my 1st comment here so I just wanted to give a quick shout out and tell you I really enjoy reading through your blog posts. Can you recommend any other blogs/websites/forums that go over the same subjects? Thanks a ton!

Really excellent information can be found on site. “I said I didn’t want to run for president. I didn’t ask you to believe me.” by Mario M Cuomo.

I regard something genuinely special in this internet site.

This web site is really a walk-through for all of the info you wanted about this and didn’t know who to ask. Glimpse here, and you’ll definitely discover it.

You made some good points there. I looked on the internet for the subject and found most guys will go along with with your website.

Thanks for any other informative web site. Where else could I get that kind of info written in such a perfect manner? I’ve a undertaking that I’m just now working on, and I have been on the glance out for such information.

Leave a Reply

Your email address will not be published.

PHPCODE © 2023