excerpt custom post type
Change your support field to this
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ) );
Eg:
<?php
add_action( 'init', 'create_testimonial_posttype' );
function create_testimonial_posttype(){
register_post_type( 'testimonials',
array(
'labels' => array(
'name' => __( 'Testimonials' ),
'singular_name' => __( 'Testimonial' )
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'clients'),
'supports' => array('title','thumbnail','editor','page-attributes','excerpt'),
)
);
}
?>
Also in PHP:
- error message in php
- base64 to image
- echo redirect set header
- check if result contains something php
- drupal 8 twig filters
- check if key of array key true or false php
- array get only the value without duplicate javascript
- check php version
- create project laravel
- composer require guzzlehttp/guzzle
- @ dev: `npm run development` npm ERR! Exit status 2 laravel 8
- fetch email from url contact form 7
- codeigniter last id inserted
- console.log from php
- codeigniter db last insert id
- check if word matches with string
- delete repeated elements array php
- cache clear in laravel command
- check if $this-> key exist php
- can we use a header function to redirect the user to another page
- Check password match laravel
- create random username with numbers and letters php
- all words capital php
- php + server + databse