Linux 软件免费装

Youtube Video Search

开发者 mauriya
更新时间 2026年7月3日 00:03
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

youtube gutenberg block video gallery video search creator tools

下载

3.2.0 3.2.2 3.2.3 3.2.1

详情介绍:

Live Demo → https://www.youtube.com/watch?v=qISHmLKOdNE Youtube Video Search turns any page on your site into a live YouTube search engine — with your own channel's videos front and center. Type a keyword, get real thumbnails, view counts, and a click-to-play embedded player that queues up the rest of the results as a playlist. No page reload, no leaving your site. It was built with one audience in mind: YouTube creators, video bloggers, course/membership sites, and media or review sites who want visitors to discover their video content without bouncing over to youtube.com — and without a dozen manually-embedded iframes to maintain. Why creators use it Features Requirements

安装:

Quick start
  1. Upload the plugin to /wp-content/plugins/, or install it through the Plugins screen in your dashboard.
  2. Activate the plugin.
  3. Go to Settings → Youtube API Setting.
  4. Enter a YouTube Data API v3 key. Don't have one? Click the "Get a free API key" link on that page — it takes about two minutes in Google Cloud Console (enable the "YouTube Data API v3", then create an API key under Credentials).
  5. (Recommended for creators) Enter your channel — a @handle, a full channel URL, or a channel name — and choose whether your channel's videos should be shown first alongside public results, or exclusively.
  6. Place the search box using whichever method fits your workflow:
  7. Block editor: click +, search "YouTube Video Search", insert.
  8. Widget: Appearance → Widgets, add "YouTube Video Search" to any widget area.
  9. Shortcode: paste [youtubesearch] into any post, page, or text widget.
  10. Theme file: add <?php if ( function_exists( 'ytps_render_search' ) ) { ytps_render_search(); } ?> to a template.
Full copy-paste snippets and SEO tips are also available right on the Settings → Youtube API Setting screen after activation, under "How to Use This Plugin." Getting an API key (step by step)
  1. Go to Google Cloud Console.
  2. Create a project (or select an existing one).
  3. Go to APIs & Services → Library, search for "YouTube Data API v3", and click Enable.
  4. Go to APIs & Services → Credentials, click Create Credentials → API key.
  5. Copy the key and paste it into Settings → Youtube API Setting on your site.
The free tier covers most small-to-medium sites comfortably; the plugin batches API calls (search + statistics in as few requests as possible, cached where it makes sense) to keep quota use efficient.

屏幕截图:

  • Real-time search suggestions as you type.
  • Settings screen: API key, channel targeting, and the How to Use panel.

升级注意事项:

3.2.2 Fixes the search box appearing unstyled/oversized (a stale CSS selector from a prior refactor). Update if your search box doesn't look like a compact rounded search bar. 3.2.1 Important fix if you updated to 3.2.0 and the search box stopped working: a file rename in 3.2.0 broke the update path for existing installs. Update to 3.2.1 to resolve it. 3.2.0 Adds a Gutenberg block, a widget, and SEO-focused server-rendered video listings with structured data. If you configured a channel in 3.1.0, no action needed — it's picked up automatically.

常见问题:

Does the plugin work before I add an API key?

Yes. The search box displays normally; searches will show a short notice asking visitors to check back later until an API key is added.

Is my API key visible to visitors?

No. It's stored in the WordPress options table and used only in server-side requests. It's never printed into page HTML or JavaScript — a meaningful difference from plugins that embed the key directly in the page source, where anyone can view-source and lift it.

How does channel priority work?

If you list your channel(s) and leave "Only show videos from the channel(s)" unchecked, a search first checks each configured channel for matches, places those at the top of the results, then fills remaining slots with public search results for the same keyword. Checking that box hides public results entirely and searches your channel(s) only.

Can I list more than one channel?

Yes, up to 5, one per line or comma-separated. Each can be a @handle, a full channel URL, or a channel ID.

Is this actually good for SEO?

The plugin renders your channel's latest videos as real, indexable HTML on page load (with genuine <a href> links to YouTube, not JavaScript-only content), and includes schema.org VideoObject structured data automatically. That's a meaningfully different starting point than a plugin whose entire result set only exists after a visitor manually searches. It's not a guarantee of rankings — no plugin can promise that — but it gives search engines real content to work with.

What's the JSON feed for?

When you configure a channel, the plugin exposes /wp-json/ytps/v1/videos — a cached, schema.org-shaped JSON list of that channel's latest uploads. It's meant for your own use: custom integrations, other tools on your site, or AI agents/crawlers that prefer structured data over parsing rendered HTML.

Can I use the block and widget on the same page?

Yes. Each instance (block, widget, shortcode) works independently — search state, results, and the video player don't interfere with each other even if several are on the same page.

What happened to the dislike count?

YouTube removed public dislike counts from the Data API in December 2021. The like indicator reflects a like-to-view ratio instead.

Does this work with my theme?

The plugin ships its own self-contained styles (no Bootstrap, no external CDN) and uses standard WordPress hooks for blocks/widgets, so it should work with any properly-coded theme. If something looks off, it's almost always a CSS specificity conflict — the support forum is the place to flag it.

更新日志:

3.2.2 3.2.1 3.2.0 3.1.0 3.0.0 2.2.7 2.2.6 2.2.5