creating a custom field that outputs a list (2 posts)

  1. M1chel
    Posted 1 year ago #


    I'm building a site for a client and trying to make things as simple as possible for him through a customized user panel.

    In a blog post which will actually be a product page for his products I need to create a custom fields that outputs a ul list like this:

    Material: wood
    Height: 100 cm
    Width: 10 cm
    Lenght: 70 cm

    but I'm not sure about how to do it.

    I did a search online and someone suggested to create a normal custom field with every element to list to be separated by a comma and use php to divide them in a list. It could be a solution but I don't know how to code that in php.

    A visual separation in the post panel would also be easier for my client, adding each element in a field and then get the list ready on the website.

    Can you help me? :)

  2. marcelvanderhoek
    Posted 1 year ago #

    Add custom fields and display them using <?php the_meta(); ?>. All custom fields will automatically be put in a ul.

    Custom Fields.

Topic Closed

This topic has been closed to new replies.

About this Topic