Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Johann Heyne

    (@jonua)

    Hi, I′m not sure, what happend.

    Your output is the table data as json format strait from the database. So far, everything is fine with the data in the database. But normaly the data should be converted in an array to output with get_field(). Maybe this won′n work because in you PHP configuaration of your server is no support for decoding json https://php.net/manual/de/function.json-decode.php

    DerHerrMeier

    (@derherrmeier)

    Hi,

    same problem here. Output:

    {"p":{"o":{"uh":0}},"c":[{"p":""},{"p":""}],"h":[{"c":""},{"c":""}],"b":[[{"c":"Acidum

    WordPress 4.4.2, Plugin Version 1.1.6. How do I get the output correct?

    Thanks in advance.

    Plugin Author Johann Heyne

    (@jonua)

    Is the Table Field plugin activated? And do you get the field′s data with get_field() or get_sub_field()?

    DerHerrMeier

    (@derherrmeier)

    Hi Johann, thanks for the quick reply.
    Table Field Plugin is activated. Sorry, I′m new to Custom Fields and using Custom Post Type UI Plugin to create Custom Posts, so I don′t know whether get_field() or get_sub_field() is used. Maybe I make a very basic mistake? What do I have to do to display the table besides creating the Custom Field?

    Thanks in advance.

    Plugin Author Johann Heyne

    (@jonua)

    You have to get a custom fields content with the function get_field() https://www.advancedcustomfields.com/resources/get_field/. This function returns an array of the table data. Then you have to build the table HTML from that array with php code like described here… https://www.ads-software.com/plugins/advanced-custom-fields-table-field/

    If you don′t know, what to do, you perhaps don′t have the skills to get true. The code you sent {"p":{"o":{"uh":0}},"c":[{"p":""},{"p":""}],"h":[{"c":""},{"c":""}],"b":[[{"c":"Acidum is the table data stored in the database in json format. You get this code, if you grab the content of a custom field by the WordPress function get_post_meta() https://developer.www.ads-software.com/reference/functions/get_post_meta/ which is the way to do without ACF.

    DerHerrMeier

    (@derherrmeier)

    My bad! I used the example code correctly, but in spite of double checking embarrassingly had a typing error in it. Sorry bout the discomfort. The json code appears when using the_meta();, which remained lounging around in my template.

    Thanks.

    Plugin Author Johann Heyne

    (@jonua)

    You are welcome.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘weird output on using the plugin’ is closed to new replies.