WP Manifestindependent plugin directory
manifest / editor / query-has-results

Query Has Results

Contains the block elements used to render content when query results are found.

★ 0stars
3release downloads
0.1.3latest · 1 year ago

Install

Download query-has-results.zip From the 0.1.3 release on GitHub, Feb 12, 2025

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/hamworks/query-has-results/releases/download/0.1.3/query-has-results.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A WordPress block that shows content only when query results exist.

Description

Query Has Results is a WordPress block plugin that allows you to wrap content that should only be displayed when a query returns results. This is particularly useful when working with Query Loop blocks to create conditional layouts.

Features

  • Simple wrapper block that shows/hides content based on query results
  • Works with WordPress Query Loop blocks
  • Supports both global queries and custom queries
  • Zero configuration required

Installation

  1. Upload the plugin files to the /wp-content/plugins/query-has-results directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Use the Query Has Results block in the block editor

Usage

  1. Add a Query Loop block to your page/post
  2. Inside the Query Loop, add a Query Has Results block
  3. Place any content you want to show only when results exist inside the Query Has Results block
  4. Content will automatically show/hide based on whether the query returns results

Releases

2 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
0.1.3 latest
Feb 12, 2025 1 year ago
query-has-results.zip
3
Feb 12, 2025 1 year ago
tag only
—