Note: This post is about my efforts to learn and understand how the WordPress Categories Query block works in the Classic vs block themes. It’s still a work in progress, so I’ll be updating it regularly.
Recently, one of my close friends, who volunteers for a non-profit organization, reached out for assistance with a small issue. He asked me to create a page on their WordPress site that would display posts from specific categories. The desired layout was straightforward: a brief introductory statement followed by a list of posts from selected categories.
The website
The website runs on WordPress and uses the upsale Classic theme, which is tailored to manage membership and related plugins. It’s powered by a variety of plugins to handle different functions, such as design creation, form building, event management, membership handling, payment gateways, and other critical tools to keep the organization running smoothly.
The main goal was to display posts from chosen categories, such as “Our Story” and “Events,” on a dedicated page of of the site. This page would also be added to the top navigation menu. The page layout would consist of a title, a short description, and a list of posts, filtered by a custom query function that pulls content from the selected categories.
In this post, I’ll walk through how I achieved this setup on demo sites, using both Classic themes and newer Block themes.
