[Résolu] Add Custom Post Type to Dashboard At a Glance Box
The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created Il y a 8 années et 11 mois. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
I am trying to add my custom post types to the At A Glance Menu on my site's WP dashboard. I'd like to see in one quick spot how many of each post type there are, and have a link to the /wp-admin/edit.php?post_type=xxxx page.
My attempt to get this to work was to use the following code, but it did not produce the custom post types in the box as I was expecting. (Code source: hidden link)
Thanks, the code in the first link worked perfectly to display the CPT in the At a Glance box. All of them were formatted with the default Post icon (looks like a push pin/thumbtack), which I wanted to change. It was easy enough to do by echoing CSS in that function. What I used was this:
For anyone looking for this in the future, change post_type_1, post_type_2, post_type_3 in the css to the actual post type name used in the slug.
You can get the content for each post type by right clicking the CPT icon in your WP admin right side menu and selecting Inspect Element. The CSS for that particular post type will include a content number similar to the above code.
Le forum ‘Types Community Support’ est fermé à de nouveaux sujets et réponses.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.