Our Biggest Sale of the Year - Get up to 30% OFF!

Custom itemtypes filter

3 votes

Custom itemtypes filter

There doesn't seem to be a way to filter the `itemtype` attribute on articles and right now, all attributes are set to "CreativeWork", which is not always correct for things like events, recipes, products, etc. Looking at the `single.php` template, I see this: ““ itemscope="itemscope" itemtype="> ““ I know I can create a `single-product.php` file in a child theme but I'm trying to avoid doing that to cater for just one (tiny) change. I can see you already have a `wpbf_body_itemtype` filter so can I suggest a similar function to cater for a `wpbf_article_itemtype` filter which defaults to `CreativeWork' but can be overwritten?
Ivan Lutrov shared this idea

Leave a Reply

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

We take your privacy seriously! See our Privacy Policy.

Scroll to Top


Download Page Builder Framework and be the first to get informed about new features & updates!


Get 10% off our Premium Add-On (yearly plan).
Coupon Code to enter during checkout: 10OFF View Pricing