Skip to main content
A White Pixel
  • WordPress Gutenberg Developer’s Guide
  • Latest Posts
    • WordPress
    • Gutenberg
    • Themes
    • WooCommerce
    • Gravity Forms
    • Advanced Custom Fields

Category: WordPress - page 2

Tutorial: Create a Microdata Widget for Your Business in WordPress

In this tutorial we’ll learn how to create a custom widget that outputs your business information, such as its official name, address, phone number and e-mail. But we’ll take it one step further by outputting it with Microdata or schema markup, which will allow search engines to understand your content. Widgets are dynamic blocks that […]

Tutorial: How to Add a Custom Bulk Action in WordPress Admin

Above most tables of elements in WordPress admin (e.g. posts, pages, comments, plugins, and users) you will find WordPress’ functionality for bulk actions. Bulk actions allow you to check off multiple elements, choose an action and have that action performed for all elements at once. In this post we’ll look at how to add our […]

Add a Custom Permalink Setting for your Custom Post Type in WordPress

This is a tutorial on how to add a custom setting to WordPress’ admin page “Settings > Permalinks” to define the slug for your custom post type. If you are developing a theme or plugin for others that has a built-in custom post type, adding this setting will be appreciated by its user for allowing […]

Guide: How to Properly Use AJAX in WordPress

AJAX is a technique you can use in Javascript for fetching data from server and updating the contents of your page without reloading it in your browser. In this post we’ll dive into how to properly use AJAX in WordPress. Most of you are probably familiar with performing AJAX requests outside WordPress, and want to […]

Tutorial: Custom URL Endpoints with WordPress Rewrite API

Ever wished you could extend single posts, pages or your custom post types with a custom template that keeps it own URL structure? With WordPress Rewrite API this is fully possible, and not difficult at all. In this tutorial we’ll look at how to append single custom post type view with another slug that loads […]

How to Modify or Add Custom Columns to Post List in WordPress Admin

WordPress allows you to modify and add columns to the list of posts, pages or any custom post type in admin panel. In this post we’ll look into how! There are two hooks to consider: one filter for the column’s position and heading, and one action for the column’s output for each post. The post […]

How to Implement an Autoloader with Namespaces in Your WordPress Theme or Plugin

If you are writing object-oriented code an autoloader is a must-have. Without an autoloader you would need to add a line with including the class file, before you can initialize it. It can quickly be cumbersome when you work with a lot of classes. An autoloader is a function that triggers everytime a new class […]

WordPress Theme Tutorial for Beginners – Conclusion and Next Steps

We conclude this WordPress theme tutorial for beginners by taking a quick recap of what we have learned. And look into what you can do next and how to improve yourself as a WordPress Theme developer. What we have created Let’s take a quick recap of what we have learned and actually created in this […]

Create Custom Post Types and Custom Taxonomies in WordPress by Code

This is a tutorial in how to create a custom post type and a custom taxonomy in WordPress by code. We’ll look at common pitfalls and which arguments to use for minimum but sufficient creation. Full example included at the end. Where to add the code Creation of custom post types (CPTs) and custom taxonomies […]

WordPress Theme Tutorial for Beginners – Part 12: Custom Post Query

In this final lesson we learn how to write your own query of posts and loop through them without interrupting the parent loop in the template. We’ll make a template part for single posts that shows related posts in the same category. What we will make in this lesson is a related posts query in […]

Posts navigation

« Previous 1 2 3 4 Next »

Categories

  • Advanced Custom Fields (7)
  • Gravity Forms (5)
  • Gutenberg (31)
  • Mini Tips (3)
  • Themes (30)
  • WooCommerce (9)
  • WordPress (37)

Newest Posts

  • How to Translate custom Gutenberg Blocks with block.json
  • Creating Custom Gutenberg Blocks with block.json
  • Gutenberg: Updating withSelect and withDispatch into React Hooks (useSelect and useDispatch)
  • How to Add Post Meta Fields to Gutenberg Document Sidebar
  • In-Depth Guide in Creating and Fetching Custom WP REST API Endpoints
  • How to Deprecate Gutenberg Blocks

Tags

admin (5) ajax (2) cpt (4) css (4) filters (10) hooks (12) i18n (3) javascript (28) media (1) menus (6) object-oriented (2) plugin customization (20) post query (5) rewrite url (3) scripts and styles (6) seo (3) theme (17) widgets (3) WP REST API (2)