Skip to content

Instantly share code, notes, and snippets.

@flumono
Last active September 17, 2017 00:28
Show Gist options
  • Save flumono/64bde788c250de0a5107e7ada3be2e2d to your computer and use it in GitHub Desktop.
Save flumono/64bde788c250de0a5107e7ada3be2e2d to your computer and use it in GitHub Desktop.
Advanced Custom Fields in Woocommerce
<div class="seo-text">
<?
//get_post_meta( get_the_ID(), 'seo_text', true );
$queried_object = get_queried_object();
$taxonomy = $queried_object->taxonomy;
$term_id = $queried_object->term_id;
the_field('seo_text', $taxonomy . '_' . $term_id);
?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment