• Resolved Scholto Bos

    (@scholtobos)


    Hi,

    When using ACF it’s possible to show a custom field from post X on page Y with shortcode: [acf field=”field_name” post_id=”123″]

    Does Custom Content Shortcode support showing a price field (or another field of course) from a specific woocommerce product on another page with something like [field _price page=342]?

    Unfortunately I can’t find it in the reference guide so I hope someone wants to help me. Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes, you can. Take a look at the [content] shortcode.

    For example: [content type=product id=123 field=_price]

    Or: [content type=product_variation id=321 field=_price]

    Thread Starter Scholto Bos

    (@scholtobos)

    Great Peter. Thanks again for your help. Last question. If I have 152 products in my store and 42 posts on my blog and I want to show these totals on front page, are there shortcodes to show these numbers/totals?

    It should be possible with the [loop-count] shortcode (take a look at the Loop reference page).

    Thread Starter Scholto Bos

    (@scholtobos)

    Great. I will. Thanks for your time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom field on different page’ is closed to new replies.