Complex Fields Separate Content
-
Hi,
I’ve recently switched from ACF to Carbon Fields. So far I’ve successfully built all the fields, however, I cannot figure out how to separate the content for the complex fields. At the moment, if I have two complex fields, the information is next to each other.
In addition to separating the content, I would also like to have a default code that the field content will go into. For example, in this picture (https://image.prntscr.com/image/1c537d0468de499aac40f39575201f82.png), the tabs and card would be the default code.
In this case, the code for the tabs is:
<li class="tab col s6"><a href="#jpakootas">Pakootas (WA-5)</a></li> <li class="tab col s6"><a href="#pjayapal">Jayapal (WA-7)</a></li>
As I add more complex content, I’d like to be able to have the same HTML but have different text in the href and a tags. For instance, if I added a third complex field, it would have the same
li
tags but different content in the<a>
tags andhref
attributes (denoted by! CHANGED CONTENT !
:<li class="tab col s6"><a href="#! CHANGED CONTENT !">! CHANGED CONTENT ! (WA-! CHANGED CONTENT !)</a></li>
Hopefully I explained it enough. Let me know if I need to elaborate. Thanks for the help!
- The topic ‘Complex Fields Separate Content’ is closed to new replies.