• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: displaying ACF repeater fields as shordcode in functions.php

Resolved: displaying ACF repeater fields as shordcode in functions.php

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I have a wordpress and ACF related question. I need to display repeater field as a shortcode that will be created inside functions.php file. Then I will use shortcode inside post page with Gutenberg. Is this possible?
I struggle with this today and I can`t find a solution ๐Ÿ™
I prepared a function called
Any help greatly appreciated ๐Ÿ™‚

Answer:

The callback in add_shortcode function should not return an output of any kind, just return the text that is to be used to replace the shortcode, like this:

If you have better answer, please add a comment about this, thank you!

advanced-custom-fields php wordpress
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Passing 2 functions in onChange in react

24/03/2023

Resolved: Why doesn’t stringstream consume output during hex formatting?

24/03/2023

Resolved: CMake path for python3 libraries doesn’t change (windows 10)

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.