Need Help Displaying Images in Themer Layout

Support MB Beaver Builder Integration Need Help Displaying Images in Themer Layout

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #12708
    Mark TenneyMark Tenney
    Participant

    Hello!

    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 https://ncmcolumbus.com/stories

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

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

    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!

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.