• The code used by Chester to insert an image tag in a page at https://youtu.be/y0UkzQFk5Ok?t=900 does not work for me.

    I am using [apr field='Photo|url' wrapper='<img src="%s">']

    I can successfully echo the URL of the Photo field without wrapper. However, when I add wrapper, I get…

    Warning: sprintf(): Too few arguments in /home/customer/www/mysite.com/public_html/wp-content/plugins/airpress/lib/chetmac/Airpress.php on line 457

    What’s going on?

    This is my first time using the WordPress Gutenberg stuff, which I’ve avoided so far, and it absolutely mangles the APR tags.

Viewing 1 replies (of 1 total)
  • You are missing the glue parameter. As you are rendering a multivalue field, you need to specify a separator.

    What you mean with the “Gutenberg stuff”? Shortcodes work well in the block editor.

Viewing 1 replies (of 1 total)
  • The topic ‘Image won’t work – “too few arguments”’ is closed to new replies.