Contents

Widget Shortcodes — Plugixa Recipe

Seven lightweight shortcodes for sidebars, landing pages, and cross-linking. Each renders from its own template in templates/widgets/ and enqueues the same frontend CSS as the main [plugixarecipe] shortcode.

[plugixa_categories] / [plugixa_cuisines]

Gallery of categories (or cuisines) as cards that link to /recipe-category/{slug}/ or /recipe-cuisine/{slug}/.

[plugixa_categories columns="4" show_count="true"]
[plugixa_cuisines columns="5" show_image="true" order="display_order"]

Cuisines widget on the frontend

Attribute Default Description
columns 4 Grid columns
show_image true Show the category image
show_count true Show the recipe count per category
show_description false Show the description
limit -1 Max cards (-1 = all)
include Comma-separated IDs
exclude Comma-separated IDs
order display_order display_order / name / count / id
orderby_direction ASC ASC / DESC

[plugixa_latest_recipes]

The most-recent recipes. Good for sidebars and home page teasers.

[plugixa_latest_recipes limit="6" columns="3"]

Latest recipes widget

Attribute Default
limit 5
columns 1
show_image true
show_meta true
show_rating true
status published

Recipes sorted by view_count (default) or rating_average.

[plugixa_popular_recipes limit="5" orderby="rating_average"]
Attribute Default Description
limit 5
columns 1
orderby view_count view_count / rating_average / like_count
show_count true Show the metric value

When used on a recipe page, shows other recipes that share categories or cuisines with the current one.

[plugixa_related_recipes limit="4"]

Related-by logic (in order):

  1. Same category and same cuisine.
  2. Same category only.
  3. Same cuisine only.
  4. Fallback to recent.

A standalone search input. Submitting redirects to /recipe-category/search/?q=… (or the page you point the form at).

[plugixa_recipe_search placeholder="Search recipes…" redirect="/recipes/"]
Attribute Default
placeholder Search recipes…
redirect (current page)
show_button true
button_text Search

[plugixa_recipe_of_day]

A single randomly-chosen recipe that rotates daily (seeded by date). Large card layout.

[plugixa_recipe_of_day]

The seed uses date('Y-m-d') so everyone sees the same recipe on a given day, cache-friendly.

[plugixa_recipe_count]

Just an integer — useful for marketing lines like “Browse our 247 recipes”.

You can now browse [plugixa_recipe_count] recipes!
Attribute Default
status published
categories (all)
cuisines (all)

Using widget shortcodes in Elementor / Gutenberg

All seven shortcodes work inside any block or widget that accepts shortcodes (Gutenberg Shortcode block, Elementor Text Editor, Classic widget, etc.).

Quick Links