• Can you combine fields in a list?

    Say I have 3 fields first_name, last_name, & age.

    [pdb_list fields=”first_name,last_name,age”] displays the three fields as:

    
    first name  last name  age
    John        Doe        27
    Frank       Smith      46
    

    I’d like to have it display as:

    
    Name          Age
    John Doe      27
    Frank Smith   46
    

    Is this possible?

    • This topic was modified 4 years, 6 months ago by jbarr.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Possible, but you will need to have some php coding skills and know your HTML pretty good.

    The way this is done is you create a custom template for your display, then in the flow of the template, you “stash” the first value you want to combine, then add it to the second value whe it comes around. It’s more complicated than that, you need to understand how the template is spooling out the display, but if you’re familiar with WP templates, it’s not hard.

    The basic technique for setting up a custom template is explained here: Using Participants Database Custom Templates

    Thread Starter jbarr

    (@jbarr)

    Thank you for the reply! I understand the solution conceptually, but admittedly, it is beyond my coding knowledge, and I’d like to keep things as simple as I can (meaning no unnecessary extra coding.)

    The current implementation of…

    
    first name  last name  age
    John        Doe        27
    Frank       Smith      46
    

    …will suit our needs.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can you combine fields in a list?’ is closed to new replies.