Category and Term Names in REST API Responses
Adds a "term_names" field to REST API responses for posts and custom post types, so apps get category and tag names without extra requests.
Snippet Library
3,040 free snippets from the WPIDE team and the community. Copy the code, or add any snippet to your site in one click with WPIDE.
Adds a "term_names" field to REST API responses for posts and custom post types, so apps get category and tag names without extra requests.
Changes the URL base of a category-style taxonomy registered by a theme or plugin, for example from /portfolio-category/ to /work-type/.
When a post is updated, also clears the WP Rocket cache for the homepage, the blog page, its category and tag archives and the author page, so lists never show stale titles or excerpts.
Adds a coloured left border to events in The Events Calendar's list, day and month views based on their event category, so visitors can scan the calendar by type.
Copies chosen term meta, such as a category color, icon or display order, to the translations of categories and tags when they are created or updated.
Adds a simple "Notice Box" widget to Elementor with a title, text and four styles (info, success, warning, error), in its own "Site Widgets" panel category.
Pre-selects a category for new posts based on who writes them, for example "Recipes" for your food writer, so posts land in the right section without anyone remembering to tick it.
Sets the default product order for specific categories, for example newest first for "New arrivals" and price for "Clearance", while others keep the store default.
Sets its own low stock threshold for products in chosen categories, so fast sellers warn you earlier while slow lines do not flood your inbox.
Lets a classic theme use single-cat-{slug}.php for posts in a given category, for example a recipe layout for posts filed under Recipes, falling back to the normal template.
Removes the default category from a post as soon as it has another category, so posts do not end up filed under both.
Adds a custom query ID "wpide_related" that shows posts sharing a category with the current post, newest first, without the current post itself.
Registers an "Events" post type with featured images, an /events/ archive and an Event Category taxonomy, as the base for a simple events calendar.
Keeps posts in chosen categories out of the main RSS feed.
Keeps posts from the categories you choose, such as internal updates or sponsored posts, out of the site search results.
Hides posts in chosen categories from the main blog page. The posts remain visible in their own category archive.
Hides products from one or more categories on the main shop page while they remain available in their own category and by direct link.
Keeps posts from the categories you choose out of the classic Recent Posts widget, for example sponsored posts or internal news.
Adds a required checkbox to the checkout only when the cart has products from a chosen category, for example "I understand personalised items cannot be returned".
Adds an author dropdown next to the date and category filters, so editors can list one writer's posts.
Registers a "Shop Filters" widget area and shows it above the product grid on shop and category pages, a natural home for price, attribute and rating filters.
Adds a "wp empty-terms" command that lists the terms of a taxonomy that no post uses, and deletes them when you add --delete. The default category is always kept.
When a post changes, also flushes the homepage and the post's category and tag archives from W3 Total Cache's page cache, so lists update with the post.
Offers free shipping whenever the cart contains a product from a chosen category, handy for promoting a new collection or bulky-but-profitable lines.