Showing custom fields ACF

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #105754
    Spyros
    Guest

    Hi, I have made some custom fields using the ACF plugin which map to custom taxonomies.

    When I use the [alg_product_custom_field name=”xxxx”] shortcode, I get:
    a:2:{i:0;s:4:”3282″;i:1;s:4:”9375″;}
    as a return value, which I suppose is the JSON format of how the taxonomy terms are stored in the fields.
    I want to display the actual values, how can I do this please?
    Thanks,
    Spyros

    • This topic was modified 11 months, 1 week ago by Omar Dabbas.
    #105755
    WPWhale
    Moderator

    Hi Spyros,

    In this case, I think you will need to create a shortcode like to fetch meta value where custom taxonomy saved and return the value of taxonomy, then call it using the shortcode.

    The shortcode you used will work if values are saved in the fields directly.

    Let me know if you need further help please.

    Omar

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.