• Resolved Bo

    (@bjorn123)


    Hi!

    Hope you can help me on this one. I am trying to output custom fields of posts to a tabular format, whereas I would like my visitors to sort and search the table to find what they need and then click on it.

    For example:
    I have added these custom fields to my posts:
    Date: YYYY-MM-DD
    Price: €XXX.XX
    City: XXXXXXX
    The number of posts with this data is 100. Clear so far?

    So, in the output there are three columns with custom field data of posts for date / price / city and the first row is the header.

    Is it possible to do so with WP Table Reloaded? How?
    And if not, what can I do to work this out?

    Thanks already for your response!!!

    Bjorn

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Bjorn,

    thanks a lot for your question.

    Unfortunately, this is not possible with WP-Table Reloaded, as the plugin can only display static data, but not data that is coming from a dynamic source like the WordPress database.

    You can however achieve this without the plugin:
    You will need to create and run a “Loop” which fetches all your posts. Then, for each post of the result, simply print your custom fields within HTML tags for a table.

    To then make everything searchable and sortable, you can manually load and use the DataTables JavaScript library from http://www.datatables.net.
    That’s the same library that WP-Table Reloaded uses.

    Best wishes,
    Tobias

    Thread Starter Bo

    (@bjorn123)

    Hi Tobias,

    Thank you very much for your response. Too bad I can’t use it directly with WP Table Reloaded. It would be a powerful feature though.

    I will have to find a way to fix it and since I am not a programmer I was hoping for a plugin 🙂
    Again, thanks for helping!

    Bjorn

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

The topic ‘[Plugin: WP-Table Reloaded] insert custom fields in table’ is closed to new replies.