Contextual Related Posts v4.6: Frequency-ranked keywords, archive recommendations and FluentCart

When Contextual Related Posts matches on content, it starts with the opening words. A long article that opens with background can end up matching posts about that background. In 4.6.0, I added an option to rank keywords by frequency and extended related posts to archive pages. Pro also gets relevance-ranked recommendations for FluentCart stores.

Contextual Related Posts v4.6: frequency-ranked keywords, related posts on archives and related products for FluentCart.

Frequency-ranked keywords

In Free and Pro, you can enable Frequency-ranked keywords under List tuning settings. It is off by default. It ranks terms from the title and, when content matching is enabled, from up to the first 100,000 bytes of the post body.

List tuning settings showing Frequency-ranked keywords and the Pro keyword controls.

Pro adds controls for automatic matching. Keyword count applies when frequency-ranked keywords are on. The stopword and phrase controls work either way:

  • Keyword count sets how many frequent terms are used per field, from 1 to 100. The default is 20.
  • The Additional stopwords setting removes extra words from automatic matching, one per line.
  • Keep default stopwords restores words that the default stopword list would otherwise remove.
  • Exclude phrases from matching strips complete phrases from the source text before keywords are extracted. An explicit Keyword override on a post still takes priority.

Pro also adds a Saved-post keyword preview to the Contextual Related Posts meta box. Save the post to refresh the preview.

Saved-post keyword preview showing frequency-ranked title and content terms for a post about growing tomatoes in containers.

Related posts on archives

Free and Pro can now add related posts automatically on post type archives. In General → Automatically add related posts to, select Post type archives. The Related Posts widget also has a Show contextual posts on archives option that matches the current category, tag, term, author, date or post type archive. Both options are off by default.

General settings showing Post type archives among the automatic placement options.

I split the automatic insertion settings for custom taxonomy, author and date archives into separate options, so you can enable one without the others. Your existing selections carry over.

Pro adds Taxonomy archive recommendations under List tuning. It is off by default. Enable it and select the category, tag or custom taxonomy locations under General to show one list after the main archive loop, ranked by the current term name.

FluentCart recommendations (Pro)

Pro now ranks the products in FluentCart’s related products section by relevance. It covers the product page, the Related Products block, the shortcode and the product modal. FluentCart still controls whether the section shows, how many products it lists and how they look. If CRP finds no matches for this section, FluentCart uses its own matching rules. Use CRP for related products and Same category or brand only are on by default. Exclude out of stock products is off by default.

FluentCart cart and checkout recommendations are off by default. Turn on Enable cart related products in the FluentCart tab to show up to four recommendations by default. CRP uses the eligible cart item with the highest unit price, excludes products already in the cart and refreshes the section when the cart changes.

FluentCart cart recommendations settings showing the enable option, product limit, target amount and price upper bound.

Cart target amount defaults to zero, which gives you the ordinary recommendations. Set a target, such as your free shipping minimum, to suggest physical products when the cart already contains at least one physical item. With a $20 gap and the default Price upper bound (%) of 20%, CRP looks in two price ranges, $20 to $24 and $10 to $12. The section disappears once the discounted item subtotal reaches the target. Shipping rules and charges stay as configured in FluentCart.

Smaller changes

  • New command palette shortcuts in the WordPress admin open the output settings and clear the site-wide cache or the current post’s cache.
  • Browser confirmations are replaced with keyboard-accessible dialogs, and cache results stay visible until you dismiss them.
  • Automatic related posts no longer appear on WooCommerce and FluentCart cart, checkout and account pages.

Fixes

Site-wide cache clearing could report the wrong result. It could miscount the keys it deleted, or report success after a database error. Tools now shows the number of keys cleared or reports the database error.

[Pro] Custom-table indexing could report success when writes had failed. This included failed resets during a forced reindex. Failures are now reported, and the result of the last cron or WP-CLI reindex is recorded.

Other fixes in this release:

  • [Pro] Network Tools did not display results after custom-table maintenance.
  • [Pro] Network Tools could not reindex custom tables when the primary site lacked Pro access.
  • [Pro] Rebuilding custom-table FULLTEXT indexes reported failure when an index was already missing.
  • [Pro] Advanced block image styles could be lost when images rendered through a template.

Upgrading

Your archive selections carry over on update. On sites with FluentCart active and FluentCart integration enabled, CRP Pro ranks FluentCart’s existing Related Products section by default. On single product pages, CRP Pro skips its own automatic Related Posts list while product ranking is enabled. Cart and checkout recommendations stay off until you turn on Enable cart related products. If your product template omits FluentCart’s Related Products section, shoppers won’t see a related products list from this integration. Add the section to your template to use CRP ranking, or turn off Use CRP for related products in the FluentCart tab to keep CRP’s automatic list if you already configured it.

Leave a Reply

Your email address will not be published. Required fields are marked *