Tag custom post
WordPress Conditional Tags Cheat Sheet With Examples
Conditional tags are functions that return true or false depending on the page being viewed. Use them to show or hide content, or to load scripts only where they are…
How To Add Custom Body Classes And Post Classes In WordPress
WordPress adds helpful classes to the body tag and to each post, and you can add your own with the body_class and post_class filters. They make it easy to style…
How To Add Custom Columns To The Posts List In The WordPress Admin
You can add your own columns to the list of posts, pages or custom post types in the dashboard, for example a thumbnail, a price or a custom field. Two…
How To Register Post Meta In WordPress With Register_Post_Meta
register_post_meta() tells WordPress about a custom field: its type, if it is a single value, how to sanitize it and if it is available in the REST API and the…
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…


