• Resolved tonylewis

    (@tonylewis)


    when using Taxonomy field and using the name category as the field name :
    block_field( “category”,false) errors,
    block_field( “category”) echo’s the value and works
    and block_value( “category”) errors

    What am I missing when returning Taxonomy field names plse 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ryan Kienstra

    (@ryankienstra)

    Hi @tonylewis,
    Thanks for bringing this up.

    block_field( “category”,false) errors,
    …and block_value( “category”) errors

    Can you please help with more details about the errors? What are the specific errors?

    Both of those functions above, block_field( “category”,false) and block_value( “category”) should return a WP_Term object:

    https://developer.ww.wp.xz.cn/reference/classes/wp_term/

    Thanks, Tony!

    Thread Starter tonylewis

    (@tonylewis)

    Thanks
    That worked using as WP_Term object: was unable to find any info on the new feature.
    Thank you so much 🙂
    https://tonylewis-photography.co.uk/
    see your blocks working on Our Recent News, Courses, Featured Videos and From our Facebook section at the bottom of page.. (cannot wait for more things to play with)

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    Hi @tonylewis,
    Wow, your site looks great! It’s really exciting seeing how you’re using the blocks.

    Maybe the repeater field will be useful for you when we release it:
    https://github.com/getblocklab/block-lab/pull/298

    Thanks a lot for sharing the link to your work.

    Thread Starter tonylewis

    (@tonylewis)

    Yes really looking forward to it. so I can crease custom galleries and sliders.

    Thank you again

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Taxonomy’ is closed to new replies.