Contents

Content Sources — Plugixa FAQ

The [plugixa_faq] shortcode can pull its items from sources other than the plugin’s own FAQ table. Set content_source="..." to switch.

Value Tier Backing data
plugixa_faqs Free The plugin’s native FAQ table (default).
wordpress_posts Free Published WordPress posts.
wordpress_pages Free Published WordPress pages.
woocommerce_products PRO WooCommerce products.
wordpress_media PRO Media library items (PDFs, videos, etc.).

The content_source_select in the Shortcode Builder shows only sources available in your tier:

Content source selector

plugixa_faqs (default)

[plugixa_faq]                     <!-- native FAQs -->
[plugixa_faq content_source="plugixa_faqs" category="shipping"]

All filtering attributes (category, ids, limit, orderby, order, language) apply directly to the FAQ table.

wordpress_posts

[plugixa_faq content_source="wordpress_posts"]

Shows published posts as FAQ items — title becomes the question, content (or excerpt) becomes the answer.

Posts rendered as FAQs

Filtering posts

Use WordPress post-category slugs:

[plugixa_faq content_source="wordpress_posts" category="news,updates"]

Post-specific settings

Post content settings

Attribute Default Notes
content_display excerpt excerpt or full.
show_read_more false Adds “Read More” link to the permalink.
read_more_text Read More Link label.
show_author true Display the post author.
show_date true Display the published date.
show_category true Show post categories.

REST endpoint

GET /wp-json/plugixa-faq/v1/wordpress-content/posts?category=5&per_page=10

wordpress_pages

[plugixa_faq content_source="wordpress_pages"]

Same behavior as wordpress_posts but for pages. Use ids="12,34,56" to pick specific pages, since pages aren’t typically categorized.

woocommerce_products PRO

[plugixa_faq content_source="woocommerce_products" product_style="modern"]

Renders WooCommerce products as FAQ items:

  • Question — product title.
  • Answer — short description.
  • Extras — price, sale badge, add-to-cart button (via product_style).

WooCommerce products as FAQs

WooCommerce product cards

Product styles

Style Description
default Plain title + description.
modern Card with image, price, add-to-cart.
minimal Title + price only.

Filters

  • ids — specific product IDs.
  • category — product category slug(s).
  • limit — max products.

Auto-enqueued assets

When the source is woocommerce_products, the plugin loads WC’s product scripts (flexslider, zoom, photoswipe, variation) so add-to-cart and zoom work inline.

WC integration also adds a FAQs tab to the single-product page — a different feature from the shortcode-based render. See WooCommerce integration.

wordpress_media PRO

[plugixa_faq content_source="wordpress_media" ids="101,102,103"]

Renders media library items:

  • Question — media title.
  • Answer — caption or description, plus an embedded player/viewer.

Use cases:

  • Downloadable PDF library with descriptions.
  • Video FAQ with YouTube/Vimeo embeds.
  • Audio-clip Q&A.

Free vs Pro content-source restrictions

In a free install, pro content sources silently fall back to plugixa_faqs with an admin notice. If you call a pro source from do_shortcode and your install is free:

echo do_shortcode( '[plugixa_faq content_source="woocommerce_products"]' );
// Free install: renders native FAQs, logs a notice
// Pro install: renders WC products

Performance tip

When using wordpress_posts or wordpress_pages, keep per_page low (≤ 10) and content_display="excerpt" — loading full content for dozens of posts slows the page.

WooCommerce products always query the WC product cache, so the cost is minimal even for large catalogs.

Hooks

Filter each source’s query before it runs:

  • plugixa_faq_source_plugixa_faqs_query
  • plugixa_faq_source_wordpress_posts_query
  • plugixa_faq_source_wordpress_pages_query
  • plugixa_faq_source_woocommerce_products_query
  • plugixa_faq_source_wordpress_media_query

Each receives the WP_Query / WC_Query args array plus the shortcode atts.

Transform a source’s results before render:

  • plugixa_faq_source_{source}_results — receives the items and returns a modified list.

Quick Links