WordPress.org

Forums

TablePress
[resolved] hide_rows / show_rows problem (13 posts)

  1. racingdb
    Member
    Posted 2 years ago #

    Hi Tobias,

    I'm sorry to trouble you, but for the last couple of days I've been banging my head against a wall trying to figure out this problem. I'm sure I've read through all of the documentation and support questions on here, but I still can't figure it out.

    Please see...

    http://racingdatabase.com/a-horse-to-follow/

    To pull in the table at the bottom, the one with the bookmaker info, I'm using this code...

    '<?php tablepress_print_table( "id=1&use_tablesorter=false&print_name=false&hide_rows=7,8,9,10,11,12,13,14,15,16&show_rows=1,2,3,4,5,6" ); ?>'

    ...but it just shows the full table.

    I've tried using a similar thing with shortcodes too, but the problem is the same.

    Do you have any idea why this isn't working?

    Many thanks,

    Paul

    http://wordpress.org/extend/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Paul,

    that's strange.

    What are the visibility settings of the rows on the table's "Edit" screen? They should be visible (i.e. not red) there.

    Then I suggest that we first try to make this work in a Shortcode. A shorter version of what you are trying to achieve would be

    [table id=1 hide_rows=7-16 /]

    The use_tablesorter parameter is useless anyway, because it doesn't exist (there was a typo in the documentation here, sorry about that). Also, we don't need the show_rows, as showing those rows is the default (if the rows are not hidden/red on the "Edit" screen). And finally, we can shorten the hide_rows parameter a little bit.

    So, please try using that Shortcode somewhere, to see if that works.

    Thanks!
    Tobias

  3. racingdb
    Member
    Posted 2 years ago #

    Hi Tobias,

    Thanks for your fast reply. Your support is excellent. I was using your previous plugin on another site before and I always thought you really stepped up there too when it came to support queries. So high five! :-)

    I just tried it again, using the shortcode instead, and that isn't working either.

    I haven't changed any of visibility settings, so it's pretty much the default install.

    I actually only need to have two versions of the same table, one with more rows than the other, so it's not a massive problem either way, but I thought you should know about it. I can easily just duplicate the table and delete the rows I don't want. It would be easier just to have one table and pull the data I want from it though :-)

    Any ideas? If you'd like to take a look I'll send you the info.

    Sorry for being a pain in the bum!

    Paul

  4. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Paul,

    no problem, you are welcome for the fast reply :-)

    Yes, as even the Shortcode parameter is not working, I'd really like to take a direct look.
    Please send me the info via email (the address is in the main plugin file tablepress.php).

    Thanks,
    Tobias

  5. racingdb
    Member
    Posted 2 years ago #

    I just emailed you Tobias.

    Thank you so much for this and for developing such a rocking plugin too.

    I know my way around WP okay and don't often have to ask for help with much at all. I actually had to register here today just to post this! But my old brain has become frazzled with trying to figure this out over the last couple of days! Sorry!

    Paul

  6. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Paul,

    I haven't received an email so far, and also checked my spam folders. Can you maybe send it again and check the address?

    And don't worry about asking for support! That's why there's a community around WP :-)

    Regards,
    Tobias

  7. racingdb
    Member
    Posted 2 years ago #

    Hi Tobias,

    I just forward the original on to you.

    I'm sending it through Gmail, which should be okay, and to your tobias.baethge address. Hope this is correct.

    ~ Paul

  8. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Paul,

    yes, thanks. Now I received the email.
    I will take a look shortly.

    Regards,
    Tobias

  9. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    just for everybody following this thread:

    After working on this directly on Paul's site, we found that TablePress is using a PHP function with an argument that is not available in all PHP versions that are supported by WordPress.
    (In detail: WordPress supports PHP 5.2.4 and newer, but TablePress was using a functoin argument that only exists since PHP 5.2.9. When then used on PHP versions lower than that, this resulted in the described problem.)
    Fortunately, the fix was easy and will be included in the next TablePress version.

    Thanks to Paul for reporting this bug and letting me investigate it on his site!

    Regards,
    Tobias

  10. racingdb
    Member
    Posted 2 years ago #

    Hi Tobias,

    Thanks very much for doing that yesterday. I tried everything, but it was still at the back of my mind that I was probably doing something silly :-)

    The site looks great now...

    http://racingdatabase.com/adios-amigo/

    I'm going to have to play around with your amazing plugin this week again, because I've got some new ideas on how to use it now too. I saw that you're using it for baseball stats etc. and our site is about horse racing, so I could use it in a similar way for results and so on.

    Thank you again for taking the time to do that, especially on a Saturday!

    ~ Paul

  11. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Paul,

    no problem, you are very welcome! :-)

    Have fun with the plugin, and don't forget to rate it here in the plugin directory if you like it. Thanks!

    Best wishes,
    Tobias

  12. racingdb
    Member
    Posted 2 years ago #

    I just rated it Tobias and I sent you the last 10 bucks I had in my PayPal account too. It's not a lot, I know, but you should be able to buy yourself a beer or two :-)

    Thanks again,

    ~ Paul

  13. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Paul,

    I just saw that :-) Thank you very much, that's really very nice!

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TablePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.