For the complete documentation index, see llms.txt. This page is also available as Markdown.

How content is displayed

The ways to show your Content Egg products on the page — blocks, shortcodes, and automatic embedding.

Once you've added products to a post, there are three ways to show them on the page. In the block editor, use blocks; in the classic editor or when you need extra options, use shortcodes; or let a module embed automatically.

In the block editor, Content Egg adds its own Content Egg section to the block inserter, with four blocks:

  • CE Products — product cards, lists, grids, comparison tables, and more. See Gutenberg product blocks.

  • CE Coupons — coupon output.

  • CE Images — image output.

  • CE Videos — video output.

The Content Egg section in the block inserter with four blocks
The Content Egg section in the block inserter

These blocks are the recommended way to display products, coupons, images, and videos.

Separately, Egg Blocks are a collection of editorial blocks (intros, pros & cons, verdicts, FAQs) that can also display product data. See Egg Blocks.

Shortcodes

Shortcodes give you the same output outside the block editor — and a few options blocks don't expose.

  • [content-egg-block] — the product display shortcode. Same output as the CE Products block, but with more parameters and support for custom templates. Build one on the Shortcode tab of the product manager (or write it by hand), then paste it wherever you want the products. Best for the classic editor, page builders, or advanced options. See Shortcode parameters.

Building a content-egg-block shortcode
Build a [content-egg-block] shortcode on the Shortcode tab
  • [content-egg] — the older module shortcode. Deprecated and superseded by the blocks and [content-egg-block]. It still works on existing sites, but isn't recommended for new content.

In a visual editor, insert shortcodes with a Shortcode block — not as plain text — so they render correctly once saved.

Automatic embedding (deprecated)

A module can also embed its products automatically at the beginning or end of every post, set per module in its settings. This older method is deprecated — prefer blocks or the [content-egg-block] shortcode for new content — but it still works on existing sites.

Page builders

Content Egg works with most WordPress page builders, including Gutenberg and Elementor. In any builder, add shortcodes with a dedicated shortcode block/widget rather than as plain text.

Last updated