• Resolved drperil

    (@drperil)


    Great plugin, I’m hoping to use it for a project I’m working, but I have a quick question.

    Is there a way to import data from custom post types? For example, if I made a custom post type with the following additional fields:
    Media Type (text string – perhaps a taxonomy?)
    Sub Media type (text string – child taxonomy?)
    Below are all just text strings:
    File Name
    Champagne
    First Name
    Last Name
    Email
    Address
    Office Number

    Could a table be made from the archive of those post types? That is, could I make a table with those fields as headers then display the data from each post?

    I was thinking of trying to use WP Types to make the post types/taxonomies and then using the Types sort codes and TablePress short codes to build a WP Views loop. I could also make a php page template… just wondering if TablePress has any kind of functions like that or if it’s really designed only to draw data from the table editor in the admin area.

    Thanks,
    Dr. Peril

    https://wordpress.org/plugins/tablepress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter drperil

    (@drperil)

    Or, as I think about it, a simple front end data entry would be awesome. A few required text string fields and a file upload field (the first column, File Name, is also supposed to be a link to download that file), that would solve the problem.

    In the end, we’re going to have like 60 people adding data. We don’t want them all to be in the WP dashboard and certainly can’t have them all editing a 1000 row table manually, it would turn into mush. A front end data entry system would take care of that. I could just put it on a page that only x,y and z users or users of a specific level have access to.

    Thoughts?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Unfortunately, I’ll have to disappoint you here. This is not something that TablePress can really help with and it’s much out of scope for the plugin.
    When dealing with Custom Post Types and Post Meta data for them, it’s usually better to simply use a custom WP_Query and then create the table HTML code in a Loop in a page template.
    That should also make it easier to integrate some sort of frontend editing, which is not possible for TablePress tables.

    Of course, you can then also add the JS functions like sorting, search, and pagination, if you want them, by manually loading the DataTables JS library from http://www.datatables.net/

    Regards,
    Tobias

    Thread Starter drperil

    (@drperil)

    Hi Tobias,

    Thanks for the quick reply!

    I’m sorry it won’t work out, but I’ll take your advise and fiddle with DataTables JS myself, I’ll get something put together that adds up to a solution, though I doubt it will be as clean as TablePress. Really, great plugin!

    Thanks again,
    ~ Dr. Peril

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! Sorry that I couldn’t help directly, but I hope that you can find a nice solution with DataTables.

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post Type data?’ is closed to new replies.