Support » Plugins and Hacks » Hacks » How to make a list like wordpress native page list?

  • Resolved Aleksandar

    (@jashimili)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to make a list like wordpress native page list?’ is closed to new replies.