-
Laravel
-
Laravel Basic
- How to create unique slug or url in Laravel
- How to Restrict/Block User Access from IP Address in Laravel
- Eloquent model Accessors and Mutators in Laravel
- How to up or down Laravel Application Maintenance Mode and How it Works
- Drag Drop to Change Post or Menu order in laravel
- How to check Laravel version of our application
- Create a master layout in Laravel using blade template inheritance
- Laravel 9 Installation from basic and changing the welcome page
- Insert Data In Database Using Seeder and Model In Laravel 9
- Laravel Import Export
- Laravel 9 Pagination
- Laravel SEO
- Laravel Crud
-
Laravel Basic
- PHP
- PHP-MYSQL
- Javascript
-
jQuery
- Submit form using ajax
- Dynamic form field
- Datatable
- jQuery Basic
-
jQuery Advance
- Sticky bottom navbar using jquery
- Wrapping all matched elements with another element in jQuery?
- Custom sidebar menu with hamburger using jquery and css
- How to Show Another big Image On Hover Using JQuery
- Read More Read Less Button using jquery and javascript
- Select All Checkboxes, Row wise or Column wise using jquery
- Wordpress
-
Design Snippets
- Custom Design
-
Bootstrap 4
- Bootstrap navbar animating from the left side using CSS
- Sticky bottom navbar using jquery
- Image hover effect using custom CSS
- Converting Bootstrap Tabs Into Accordions In Mobile View using CSS only
- Animating bootstrap 4 modal from left or right
- More dropdown button in bootstrap tab menu items using jQuery
- Service displaying with icon and danger hover effect on div hover
- A full customization of particlejs
- Owl Carousel Slider with range input slider and next previous button
- Custom sidebar menu with hamburger using jquery and css
- Stylish multiple footer design example in bootstrap
- Multiple owl-carousel sliders in one page
- Banner design with form and animated text in bootstrap
- Bootstrap 5
- Design Template
- E-Commerce Design
- Custom CSS
- Interview Questions
- PHP Ajax
- How to
- Jquery UI
- Cheatsheet
- HTML Quiz Label 1
- JavaScript Quiz Practice Set Level 1
- PHP array Quiz Practice Set
- Tools
Generated Function:
Copy and use below hooks in functions.php
function custom_post_type() {
$labels = array(
'name' => _x( 'Custom Posts', 'Portfolio General Name', 'Textdomain' ),
'singular_name' => _x( 'Custom Post', 'Post Type Singular Name', 'Textdomain' ),
'menu_name' => _x( 'Custom Posts', 'Admin Menu text', 'Textdomain' ),
'name_admin_bar' => _x( 'portfolio', 'Add New on Toolbar', 'Textdomain' ),
'archives' => __( 'portfolio Archives', 'Textdomain' ),
'attributes' => __( 'portfolio Attributes', 'Textdomain' ),
'parent_item_colon' => __( 'Parent portfolio:', 'Textdomain' ),
'all_items' => __( 'All Custom Posts', 'Textdomain' ),
'add_new_item' => __( 'Add New portfolio', 'Textdomain' ),
'add_new' => __( 'Add New', 'Textdomain' ),
'new_item' => __( 'New portfolio', 'Textdomain' ),
'edit_item' => __( 'Edit portfolio', 'Textdomain' ),
'update_item' => __( 'Update portfolio', 'Textdomain' ),
'view_item' => __( 'View portfolio', 'Textdomain' ),
'view_items' => __( 'View Custom Posts', 'Textdomain' ),
'search_items' => __( 'Search portfolio', 'Textdomain' ),
'not_found' => __( 'Not found', 'Textdomain' ),
'not_found_in_trash' => __( 'Not found in Trash', 'Textdomain' ),
'featured_image' => __( 'Featured Image', 'Textdomain' ),
'set_featured_image' => __( 'Set featured image', 'Textdomain' ),
'remove_featured_image' => __( 'Remove featured image', 'Textdomain' ),
'use_featured_image' => __( 'Use as featured image', 'Textdomain' ),
'insert_into_item' => __( 'Insert into portfolio', 'Textdomain' ),
'uploaded_to_this_item' => __( 'Uploaded to this Custom Post', 'Textdomain' ),
'items_list' => __( 'Custom Posts list', 'Textdomain' ),
'items_list_navigation' => __( 'Custom Posts list navigation', 'Textdomain' ),
'filter_items_list' => __( 'Filter Custom Posts list', 'Textdomain' ),
);
$args = array(
'label' => __( 'Custom Posts', 'Textdomain' ),
'supports' => ["title","editor"],
'taxonomies' => ["post_tag"],
'description' => __( 'Custom Posts', 'Textdomain' ),
'labels' => $labels,
'menu_icon' => 'dashicons-admin-appearance',
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'show_in_admin_bar' => true,
'show_in_nav_menus' => false,
'can_export' => false,
'has_archive' => true,
'hierarchical' => false,
'exclude_from_search' => false,
'show_in_rest' => true,
'publicly_queryable' => true,
'capability_type' => 'post',
);
register_post_type( 'custompost', $args );
}
add_action( 'init', 'custom_post_type', 0 );