Home Forums General Issues Post CSS names


Post CSS names

  • Is there any way when creating a page link or post object to include the posts CSS selectors? For example, a WooCommerce link may contain all of this information in the CSS:

    <li class="wcpa_has_options product type-product post-8191 status-publish instock product_cat-slices product_tag-dairy-free product_tag-vegan product_tag-vegetarian has-post-thumbnail shipping-taxable purchasable product-type-simple"><a href="">Product name</a></li>

    So that’s what I’d like to include automatically when creating a link from ACF.

    Hope that makes sense!

  • This is not possible with ACF. You would need to code your template to get that information and include it, or create an acf/format_value filter that does the additions.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.