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

Latest articles

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 […]

How to Add Custom Fields and Tabs into WooCommerce Product Data Metabox by Code

In this post we’ll learn how to add your custom meta fields into WooCommerce’s Product data metabox; how to add fields and also how to add your own custom tab. We’ll go into detail about how to add your fields, where to add them, how to save them, and finally how to display them in […]

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 […]

Guide: Customize WooCommerce Checkout Fields by Code

In this post you’ll learn how to change, remove or reposition default checkout fields in WooCommerce, and how to add your own custom field. The checkout fields filter WooCommerce offers a filter for all checkout fields: woocommerce_checkout_fields. There is also dedicated filters for billing and shipping fields; woocommerce_billing_fields and woocommerce_shipping_fields but they both end up […]

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 […]

WordPress Theme Tutorial for Beginners – Part 11: Custom Page Templates

In this lesson of WordPress theme tutorial for beginners we learn about page templates, what they are, how to create them and best practices. We’ll make a fullwidth template as an example. Along the way we also add a class to body by asking if the page is using a specific page template. What are […]

Posts navigation

« Previous 1 … 5 6 7 8 9 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)