WordPress.org

Ready to get started?Download WordPress

Forums

How can I add tables in posts? (5 posts)

  1. spstieng
    Member
    Posted 4 years ago #

    I need to make list of employees where I have a image to the left, and some text to the right.

    What is the best way of making this table without writing HTML?
    (My customer does not know HTML)

  2. MichaelH
    Member
    Posted 4 years ago #

  3. spstieng
    Member
    Posted 4 years ago #

    Yeah, that's an alternative.

    But I was hoping to find something that allows to user to create a table "on-the-spot", and not having to pre-create the table.

  4. syncbox
    Member
    Posted 4 years ago #

    Try using something like Custom Field Templates, where you can create a custom form for each type of data (eg.employee-pic and employee-bio or whatever) and then you client simply writes into those fields....

    Then, in your page template, you can generate the html and css around calling the custom field data. I use coffeetocode.com's excellent get_cutom_fields plugin to echo the data from the key field, wrapping the before and after html around it. This plugin only writes that html code IF the key and value are present... though there are many functions and methods available in the plugin.... inside AND outside the loop.

    That way, the client is simply supplying the data, not formatting the markup at all... a far better method, imho, than trusting someone without much skill in html to write it, irregardless of WHAT that html structure is.

    You (as the template developer) could write table code around the data retrieved... or write a list (that's what I would do, frankly) and float the image left of the text content using your preferred method of float clearing for each list item's block. This is all hidden from the editor of the content.

  5. MichaelH
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags