WordPress Theme Integration
WordPress Development
WordPress development means changing or extending WordPress with code. You can build your own theme (the design), your own plugin (a feature), or use WordPress as an application platform with the REST…
WordPress Theme Files and Functions
A classic WordPress theme can be very small. It needs only two files: style.css and index.php. In real themes we split the code into more files. We will build a tiny theme…
WordPress Template Hierarchy
When someone opens a URL, WordPress must choose one template file from the theme. The rule it follows is the template hierarchy. It starts with the most specific file name and goes…
WordPress Enqueue Scripts and Styles
Never write <link> or <script> tags by hand in header.php. WordPress has a proper system to load CSS and JavaScript files, called enqueue. It stops the same file from loading two times,…
WordPress Loop
WordPress Loop is a PHP code to fetch and display posts in WordPress themes. Learn how to use WordPress Loop, or The Loop with example here.
WordPress WP_Query Class
WordPress WP_Query Class is used to fetch content based on custom queries & parameters. See WP_Query example to fetch n Number of Posts here.
WordPress Conditional Tags
Conditional tags are functions which return true or false. They tell your code what kind of page is being shown, so you can change the output for the home page, a post,…
WordPress Register Sidebar
How to create custom WordPress Sidebar using register_sidebar() and display widgets using dynamic_sidebar() function. Learn with example.
WordPress Register Nav Menus
To let a site owner build a menu in the dashboard and show it in your theme, you do two things: register the menu locations, and call wp_nav_menu() in the template. Register…
WordPress Hooks: Actions and Filters
Hooks are the most important idea in WordPress development. A hook is a place in the WordPress code where you can run your own function, or change some data, without editing the…
WordPress Shortcode and Shortcode API
A shortcode is a small tag in square brackets, like , which WordPress replaces with some content when the page is shown. Plugins use shortcodes to add forms, sliders and buttons into…
WordPress Custom Post Types
WordPress Custom Post Types (CPT) creates different types of content like Posts & Pages. Learn Custom Posts using register_post_type() here
WordPress Custom Taxonomies
Categories and tags are the built in taxonomies. With register_taxonomy() you can create your own grouping, like Genre for books, Brand for products or Location for events. If it is hierarchical it…
WordPress Custom Fields and Post Meta
Custom fields (also called post meta) store extra data for a post, like a price, an author name or an event date. Each field is a key and value pair saved in…
WordPress Child Theme
A child theme is a theme which uses another theme (the parent) as its base. You change only the things you need in the child, and everything else comes from the parent….
WordPress Block Themes and theme.json
Block themes (also called full site editing themes) are the new way to build themes. Instead of PHP templates, they use HTML templates made of blocks, and a theme.json file for the…