PHP
How To Change The Excerpt Length And Read More Text In WordPress
WordPress shows 55 words in excerpts by default and ends them with […]. Two filters let you change both.
How To Add A Custom Meta Box And Save Custom Fields In WordPress
A meta box is an extra panel in the post editor where you can add custom fields, like a subtitle, a price or a link. This example creates a text…
How To Create A Custom Shortcode In WordPress
A shortcode is a small tag in square brackets that the editor replaces with dynamic content. Register one with add_shortcode() and always return the output instead of printing it.
How To Register A Custom Taxonomy In WordPress
A taxonomy is a way to group content. Categories and tags are the built-in taxonomies. A custom taxonomy lets you create your own groups, like project types, genres or brands,…
How To Register A Custom Post Type In WordPress
A custom post type, or CPT, is a new type of content besides posts and pages, such as portfolio items, products, events or testimonials. Register it with register_post_type() on the…


