• GreWeb

    (@fil6718)


    Good morning, The short code [my_bookings] returns a table containing the reservation information for the connected user. I am looking for the possibility of obtaining the same type of table but for all users. I know that nothing exists in this direction currently. Can anyone give me a direction for research or development? All I need is a table of this form, for example:

    <table id="example"  >
            <thead>
                <tr>
                    <th>Name</th>
                    <th>Position</th>
                    <th>Office</th>
                    <th>Age</th>
                    <th>Start date</th>
                    <th>Salary</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Tiger Nixon</td>
                    <td>System Architect</td>
                    <td>Edinburgh</td>
                    <td>61</td>
                    <td>2011-04-25</td>
                    <td>$320,800</td>
                </tr>
                <tr>
                    <td>Garrett Winters</td>
                    <td>Accountant</td>
                    <td>Tokyo</td>
                    <td>63</td>
                    <td>2011-07-25</td>
                    <td>$170,750</td>
                </tr>
    </tbody>
    <tfoot>
    <tr>
    <th>Name</th>
    <th>Position</th>
    <th>Office</th>
    <th>Age</th>
    <th>Start date</th>
    <th>Salary</th>
    </tr>
    </tfoot>
    </table>

    Tha,ks for your help

Viewing 3 replies - 1 through 3 (of 3 total)
  • joneiseman

    (@joneiseman)

    You can create a shortcode ([bookings]) to display bookings from all users by adding the following code snippet:

    add_shortcode('bookings', 'em_get_bookings_admin');

    You can use the Code Snippets plugin to add this code snippet.

    I’m not sure how your table example relates to the bookings table.

    Thread Starter GreWeb

    (@fil6718)

    Thank you for your feedback. I already use this short code which returns a table similar to that of reservations which is in the back office. Using the short code [my_bookings] returns a table showing the event, date, number of places, status and actions for the connected user. I am looking for a way to have the same type of table for all users. I know this type of table does not exist. And can someone help me or tell me where I can look to get this table. Can the short code request [my_bookings] be adapted? Thanks in advance.

    Use the code snippet that I provided and then you can use the [bookings] shortcode to get the table you want (not [my_boikings]).

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.