Tag display
How To Schedule Tasks In WordPress With Wp-Cron
WP-Cron runs tasks on a schedule, like cleaning old data, syncing an API or sending a report. It does not use a real server cron. WordPress checks for due tasks…
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 Pagination To A Custom Wp_Query In WordPress
A custom WP_Query does not paginate by itself. You need to pass the current page number to the query and then print the page links with paginate_links().
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…
How To Create A Custom Loop In WordPress With Wp_Query
WP_Query lets you fetch posts with your own rules, like a specific category, post type or number of items, and display them anywhere in your theme.


