WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to make a list like wordpress native page list? (3 posts)

  1. jashimili
    Member
    Posted 1 year ago #

    Hi, im making function for my theme for hotel reservation.

    And i have made everything so far to work fine, but i dont know how to make it to list all reservations like wordpress have all pages in list.

    When you go to posts -> all posts
    I very much like how posts are listed
    How can i make it with same look just to list reservations on my custom function.

  2. bcworkz
    Member
    Posted 1 year ago #

    The posts table display (class WP_Posts_List_Table) is an extension of the WP_List_Table class. It is defined in wp-admin/includes/class-wp-posts-list-table.php. The method single_row() is where much of the actual work is done. WP_List_Table is defined in class-wp-list-table.php in the same folder.

    You could extend the WP_List_Table class in a similar manner for your own purposes.

  3. jashimili
    Member
    Posted 1 year ago #

    Hey thanks for the info, i did some research on WP_List_Table and come up on some tutorials. Things looks complex at first look but after reading documentation it's actually simple. This helped me and i managed to make my page look like i wanted. Thanks for your info and help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.