• Hi,

    can someone help me?

    I’m trying to print a list of all custom-posts in the wp-admin.

    I could not find any plugin that would help nor a code snippet.

    Is there a way to get this wp-list-table printed?

    Thanks!!

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

    (@bcworkz)

    You can use get_post_types() to get an array of post types. To print a simple list run a foreach loop on the returned array and output formatted content as desired.

    Getting a true interactive WP_List_Table is much more involved. Extend the base class and define all the required methods. Use one of the other admin table classes in wp-admin/includes/ as examples on what to do.

    Thread Starter Ploeve

    (@ploeve)

    thank you,

    but any other possibility to really print the list via a hardware printer?

    thanks

    Moderator bcworkz

    (@bcworkz)

    A what? 🙂

    Sorry about the misread. Same as above though, but then you use your browser’s print function.

    Not sure exactly what you mean by “custom-posts” and how many different ones you may have, but you could simply print the admin screen directly if you can configure it to display only what you want via the filters and the items per page setting.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Print post-list in wp-admin’ is closed to new replies.