• Hi there,

    I have recently noticed an issue when showing a table.

    When I’m using the option, “output whole html table”, the table is being shown when you are logged in. When you are logged out, it just shows the table’s ID’s as an integer. In this case I’m using:

    the_field('field_name');

    Other way around: When you are using an ID as output format, the tables will show up, when you are logged out – when you are logged in, it does show a list of attributes and classes of the table.

    I have tried 2 ways of implementation: the first, mentioned above – and the second one like this:

    $tableID = get_field( 'field_name' );							tablepress_print_table( "id=$tableID" );

    I have uploaded a couple of screenshots so you can see.

    https://sandbox.reifengundlach.de/acf-tablepress/When-logged-in.jpg
    https://sandbox.reifengundlach.de/acf-tablepress/When-logged-out.jpg

    I don’t care that much about this issue, because when logged out, everything is fine – however, I think some people might be happy to have this issue documented and even better resolved.

    In case you want to get BE access, just let me know.

    Best Regards

    Toby

    https://www.ads-software.com/plugins/acf-tablepress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TylerDigital

    (@tylerdigital)

    Hi Toby—
    Sorry you’re having trouble! I’m definitely seeing your issue with the HTML output! Are you using ACF v. 4 or v. 5?

    Re: the ID output issue, when you switched between methods (HTML output > ID output), are you updating/re-publishing the post/page that the form is selected from after you’ve edited the field group? The post/page will not update which output it uses until you publish/update again. The behavior I’m seeing in your screenshot ( … table not found) is what I would expect if you pass the “html output” to do_shortcode().

    Meanwhile I’ll definitely look into what’s up with the HTML output!

    Best,
    Phil

    Plugin Contributor pwtyler

    (@pwtyler)

    Hi there—
    It looks like what’s happening here is a failure with the HTML output feature that has been wrong since the beginning, and I’m honestly not sure I can fix it easily, but the fact that you were the first one to bring it up to us in the eight months this plugin has been out there tells me users are opting for the ID output, and not bothering with HTML output.

    For now I’ll be pushing an update that simply hides “HTML Output” as an option (though we’ll leave the functions in there in case someone out there DOES have it working).

    I’ve apparently only ever used the ID output in my own projects— I included the HTML alternative because I thought it might be easier for some users. Clearly thats on me to test more thoroughly next time.

    Did updating/re-publishing fix you issue with the table not appearing while logged in?

    Best,
    Phil

    Just to note that we also happened across this same issue today. Our solution was to use the following code snippet in the template to work for both options:

    $tablepress_table = get_field( 'tablepress_table' );
    
    if ( is_numeric( $tablepress_table ) ) {
        $args = array(
            'id' => $tablepress_table
        );
    
        if ( function_exists( 'tablepress_get_table' ) ) {
            $tablepress_table = tablepress_get_table( $args );
        }
    }
    
    echo $tablepress_table;

    Hope that helps.

    Deuce Creative In which file format import site

    By the way did not solve my problem you proposed
    Please update or plugin, or to publish a comprehensive video training

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Logged in / Logged out issue’ is closed to new replies.