Linux 软件免费装
Banner图

Stunning Related for Posts, Products, Pages and widgets

开发者 wp-buy
更新时间 2026年9月2日 05:23
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

related posts recommendations similar related products relevant

下载

1.0 1.2 2.1

详情介绍:

Most related-content plugins give you one global settings page and one block at the bottom of the article. This one is built around a different idea: you create Displays, and every display answers three separate questions. That separation runs all the way through the architecture: Content Provider → Relation Engine → Filters / Exclusions → Ranking → Cache → Placement Engine → Layout Renderer → Template Unlimited independent displays One article can run several displays at once, each with its own content rules, position, design and priority — and the same item is never repeated twice on the page: Displays are ordered by a priority value, can be activated or deactivated individually, duplicated, and exported to JSON for another site. Weighted relation engine Instead of "same category", candidates are scored and ranked: related_score = primary category + categories + tags + custom taxonomies + product attributes + same author + recency Every weight is adjustable from 0 to 100, so two posts sharing a category and three tags naturally outrank one sharing only a category. The primary category set by Yoast SEO or Rank Math is recognised and weighted separately. A Basic engine mode is included when you want plain term matching where every shared term counts the same. Other content controls: Selection modes HTML-aware in-content placement In-content insertion is resolved with a DOM pass. A block is only ever placed between top-level elements, so lists, tables, blockquotes, galleries and shortcodes are never split — content is never cut on </p> with a string function. Available positions: before content, after title, after content, after paragraph X, before paragraph X, after X% of the article, middle of the article, before the first heading, after the first heading, before the last heading, before the conclusion, every X paragraphs, and every X words — the repeating positions with a maximum block count. WooCommerce placements 24 product, shop, cart, checkout and order hooks: Cart, checkout and order-received recommendations are derived from what is actually in the cart or in the completed order, and never recommend a product the customer already has. Cross-content recommendations The engine is not hard-coded to post → post. Set a source and a target and a blog article can recommend products, while a product page recommends the guides that explain it. Cross-content matching links the two by matching term slugs across the taxonomies of the target post types. Display conditions A display runs only where you want it: Per-post overrides Inside the post or product editor, a Related Content metabox can override the global behaviour for that item: use global settings, automatic, custom only, custom first then automatic, or disabled entirely — plus its own always-recommend and never-recommend lists with an AJAX search picker. Layouts, templates and responsive columns Layout controls the structure, the template controls the visual DNA, and the two are independent. Design controls Live preview The editor renders a real preview from real content on your site while you work, with desktop, tablet and mobile device toggles, a full-screen preview overlay and a template navigator for stepping through all 12 templates without leaving the screen. Performance Analytics Impressions and clicks are aggregated per day, so you can see click-through rate per template, per placement, per display and per recommended item — which recommendation strategy actually works, not just which one looks nice. Aggregated counters only: no cookies and no personal data. A retention window (0–1825 days) prunes old rows automatically. Manual placement Tools Clear the recommendation cache, reset statistics, and export or import displays as JSON to move a configuration between staging and production. Exclusions Never recommend the current item, password-protected content, private content, content marked noindex by Yoast SEO or Rank Math, or out-of-stock products — plus excluded terms, excluded authors, excluded item IDs, and a guard against showing the same item twice on one page. Privacy The plugin sends nothing to any external service. Analytics rows contain a display ID, a source post ID, a target post ID, a template key, a placement key, a date and two counters — no IP addresses, no cookies, no visitor identifiers.

安装:

  1. Upload the plugin folder to /wp-content/plugins/, or install the ZIP from Plugins → Add New → Upload Plugin.
  2. Activate it. A starter display, "Blog recommendations", is created for you.
  3. Go to Related Content → Displays and click + Add Related Content.
  4. Answer the four questions — how it looks, what to show, where it appears, how many items — and save.
Optional: Related Content → Settings holds the global switches (cache, stylesheet, lazy images, analytics, retention, delete-on-uninstall), and Related Content → Tools holds cache clearing, statistics reset and JSON export/import.

屏幕截图:

  • The editor with live preview and device toggles.
  • The collabsed tabs contains every control for a display.
  • The first admin page.

升级注意事项:

2.1 Version 2.1 introduces the display-based architecture, the weighted relation engine, WooCommerce placements and CTR analytics. Template overrides now live in your-theme/advanced-css3-related-posts-widget/ — the previous folder still works.

常见问题:

Does it work with custom post types?

Yes. Every public post type registered on the site is detected automatically — courses, documentation, portfolio, downloads, jobs, events and so on. The same applies to public taxonomies, which can all be used for relatedness.

Does it need WooCommerce?

No. WooCommerce is optional. When it is active, the product placements, the product fields (price, rating, Add to Cart, sale badge), the product templates and the price-range condition appear automatically.

Will it break my article markup?

No. In-content insertion uses a DOM pass and only places blocks between top-level elements. Lists, tables, blockquotes, galleries and shortcodes are never split.

Can several displays run on the same article?

Yes, that is the point. Each one has its own priority, and the duplicate guard stops the same item appearing in two blocks on one page.

Can I change the templates?

Yes. Copy any file from advanced-css3-related-posts-widget/templates/ into your-theme/advanced-css3-related-posts-widget/ and it will be used instead. The template helper functions (srpp_tpl_image(), srpp_tpl_title(), srpp_tpl_meta(), …) are available there, and $context, $display and $items are in scope. Custom templates can also be registered with the srpp_templates filter.

Which shortcode attributes are supported?

id, post_id, items, template, layout, columns, tablet, mobile and heading. For example: [smart_related id="5" items="4" columns="4" template="tpl-07"].

Which hooks are available for developers?

srpp_related_ids, srpp_item_data, srpp_render, srpp_templates, srpp_conditions_pass, srpp_post_types, srpp_taxonomies, srpp_fields, srpp_image_size, srpp_placeholder_image and srpp_words_per_minute.

Is it slow on large sites?

Relationship resolution is the expensive part of any related-content plugin, so it is done once per post and cached, and scoring runs as a single grouped SQL query. Front-end assets are conditional, so pages without recommendations load nothing at all.

What happens when I uninstall it?

Nothing is deleted unless you first enable Delete all plugin data on uninstall in Settings. With that switch on, displays, cached recommendation lists, per-post overrides, the statistics table and the plugin options are removed.

更新日志:

2.1 1.2 1.0 0.8 0.7 0.5