Support

Account

Home Forums General Issues How to add two feilds together inside one attribute?

Solving

How to add two feilds together inside one attribute?

  • As part of the Array for file title, I have set empty value like… Floor Plan

    $floor_file_title = $floorplanfile['title'] != '' ? $floorplanfile['title'] : 'Floor Plan';

    However, I would like to set this up so that in the title attribute both $floor_file_title and another acf field $address are displayed together.

    title="'. esc_attr($floor_file_title) .' - '. esc_attr($address) .'"

    How would you setup multiple variables inside one attribute?

    Thanks

  • you are going to need to give a better explanations. Sorry, but I cannot figure out what you are attempting to do. What kind of fields are you using? Where are you trying to display them? What code are you using that is not working?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.