Custom Fields
Support Meta Box - Beaver Themer Integrator Need Help Displaying Images in Themer Layout

  • Creator
  • #12708
    Mark Tenney


    I'm having trouble getting an image to display in my themer layout. I'm trying to use a posts module in my themer layout that uses a metabox image upload field called 'headshot' instead of the featured image.

    The layout I'm working on is

    Here's the HTML I'm writing in the posts module:

              [wpbb post:link text="title"]
              [wpbb post:meta_box field='designation' date_format='']
          [wpbb post:excerpt length="55" more="..."]
          <p class="dgtl-read-more-text">
            [wpbb post:link text="custom" custom_text="Read More »"]

    I'm getting the following PHP error:

    Notice: Array to string conversion in /.../wp-includes/shortcodes.php on line 319

    I think the issue is because themer needs a single image URL and the shortcode generates an array. I'm not sure if there is a variable I can add to the shortcode to fix it or if I need to do something on the field code itself to make the field return a single file URL instead of the array.

    I'm still pretty new with PHP. Thank you for your help!

  • You must be logged in to reply to this topic.