Home Forums Pre-purchase Questions fileds combination


fileds combination

  • Hi,
    I would like to create a custom field mixing 2 other fields. In my case I have a date field which I would like to be colored with a color field. I need to mix them because the table I use to display the results (post table pro) needs custom fields (meta data) to be placed into the shortcodes (One column per field).
    I tried to create a text field with default content like this :
    <p style="background-color:<?php the_field('mycolorfiled'); ?>"><?php the_field('mydatefield'); ?></p>
    But it doesn’t work…
    Do I need the Pro version to accomplish this ? Can you lead me to a solution please ?

  • This will not work because you cannot run PHP in a text field

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

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.