I’ve got stuck. The problem is that I need to put shortcodes before the <TR>-tag and after </TR>-Tag in HTML. See example:
[wpsleep end=”16.06.2014″]<tr>
<td>14.06.2014</td>
<td>Termin 1</td>
</tr>[/wpsleep]
Is there a chance to make that thing work?
Hi,
thanks for your post, and sorry for the trouble.
There’s indeed no functionality in TablePress for showing a row only for a limited time. (And to be honest, I don’t think that this belongs into a plain table plugin, so that this very likely will not make it into a future version.)
Now, regarding that Shortcode: As you can only enter content into the table cells, but not around it, it is not possible to wrap a table row (i.e. the <tr>...</tr> HTML code) with a Shortcode. You can only place the full Shortcode into a table cell. However, both the start-Shortcode as well as the end-Shortcode need to be in the same cell then.
Regards,
Tobias
Hi Tobias,
thank you very much for wasting your time on my problem.
Your absolute right, everything is working if I put the shortcode into a cell. I tried that a few hours ago.
But the Problem with this solution is that I will display empty cells now. Not really nice. Is there any possibility to hide empty rows(/columns) with tablepress?
Regards,
Thomas
Hi Thomas,
I don’t really see an (existing) automatic way to achieve this, unfortunately. You could look into using one of the existing plugin filter hooks that are run when the table is rendered. With some custom programming, you could hide undesired rows with that.
The alternative would be to hide rows manually (using the “Hide” button on the “Edit” screen), but I guess that that’s something that you don’t really want to do.
Regards,
Tobias
Hi Tobias,
thank for inconvenience. I hoped to use TablePress as a very simple event-list. So I must try to program php on my own. Puuh.
Best regards and close
Thomas
Hi Thomas,
well, TablePress can be a very simple event list, but as that’s not its primary use case, some customizations with own PHP code are necessary here. Sorry.
Best wishes,
Tobias