create custom post type with category in wordpress functions.php
function create_posttype() {
register_post_type( 'wpll_product',
array(
'labels' => array(
'name' => __( 'Products' ),
'singular_name' => __( 'Product' )
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'products'),
)
);
}
add_action( 'init', 'create_posttype' );
Also in PHP:
- Tto upper php
- ** (process:82385): CRITICAL **: 22:54:20.169: string_replace: assertion 'self != NULL' failed
- codeigniter crud generator
- datetime
- create folder in php if not exist
- error show php
- composer create-project laravel/laravel 8
- Pacific Daylight Time Zone php
- addeventlistener doesn't work in laravel?
- count string lengh php
- convert timestamp to date time in php
- Target class [Controller] does not exist.
- create seeding in laravel
- creating thumbnail in codeigniter
- envoyer mail php depuis localhost
- create seeders in laravel 8
- check if key exists php
- consolelog is it a thing in php
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes laravel
- count the no of characters in a string in phph
- data time on php
- combine two query value in laravel 8
- create new laravel
- eloquent relationships