The answer at that link is incorrect.
The “Edit Animals” text from their answer uses the edit_item
label, not singular_name
. There’s a much longer list of labels that you’ll need to provide when registering a post type than just those two. The full list is kept here.
As for singular_name
, as far as I can tell, this is only used to label menu items and link suggestions:
In both those examples “Page” is where the singular_name
is used.
Related Posts:
- Use template_include with custom post types
- Combining Multiple Taxonomies in one URL
- Taxonomy term in permalink
- How to give a CPT (custom post type) a date based url
- how can I create a calendar for a cpt, using get_calendar or other
- Numbering sections and block-level elements in wpautop(); WordPress as CMS for long-form writing;
- Modify custom post type rewrite rules in a separate function
- get_edit_post_link() not working as expected when passed id in plugin
- ‘No pages found’ in Dashboard after registering custom taxonomy
- Why is wp_is_post_revision always false?
- Change page /2 to /transcript with a Rewrite
- Custom Post Type ‘hierarchical’ Help!
- Issue with saving custom post type when editor is removed
- How would I leverage custom Taxonomies in this scenario?
- Using custom post types in submenu + custom title
- Dynamic dropdown custom post list based on dropdown selection
- How to display recent posts added in custom post types
- Excluding post type from WordPress link builder
- Multiple Content Block
- Creating a function that receives the taxonomy terms that have been changed in a custom post type
- Thumbnails on next/previous links in custom post type single.php
- Dynamic iCal generator outside/inside wordpress
- 2 different post->IDs for single page load only in Firefox
- How to show custom (checkbox) field value in admin post list?
- Display custom post types with custom date field value (before today) & order by custom date field
- Remove All, Published and Trashed Post Views in Custom Post Type
- Using pre_get_posts to filter one loop in a multiloop archive
- How to Duplicate (multiple meta box)?
- Custom Post Type: Upload Multiple Images
- display span element if in certain post types
- How to detect filter in URL in Category page?
- How Do You Add a Second “Posts” Menu to Your Dashboard?
- CPT issue: Warning: call_user_func_array() expects parameter 1 to be a valid callback
- How do I correct an incorrect permalink?
- Post form as custom post
- Is $object_type truly required with register_taxonomy()?
- Query & Order posts by custom fields
- How to target a specific custom post type post and its all children and grandchildren?
- output custom post types on front-page.php
- Allow Static Page Load Dynamic Child Pages
- Suggested Post and Taxonomy structure
- Display post content with respect to its title?
- Use custom walker to add taxonomy terms to main nav menu
- frontend image post uploader
- WP_Query orderby and tax_query
- admin-ajax.php GET custom-post titles
- Creating custom post type with custom taxonomy and custom fields programatically
- wysiwyg editor don´t export paragraph
- How to group search results by post type and only if post type result is not empty?
- How to see posts in taxonomy endpoint
- Graphql: Unable to query (where:{author}) for custom post type
- Get parent category(taxonomy) ID from single template of a custom post type
- Dynamic CPT / Taxonomy
- Custom post types sorting admin columns nothing found
- Custom Post Type: Search Results – Template for no results
- Different structure/content for posts from a custom post type
- delete duplicate meta_value with same post_id
- Custom post type draft use wrong template
- Custom Taxonomy Filter Issues
- CPT archive page – show one post from each taxonomy term
- Subpages Permalinks Issues
- Custom post-type custom query – show all posts
- Event Archive by Month
- Display custom post type from template
- Change Text in Admin Panel
- Limiting actions only to edit.php page for specific custom post type
- Archive page of taxonomy returns a 404 error
- Adding a location field to buddypress activity
- How to Grab Anime info using Jikan API and fill the value in Metabox
- Is there a way to display a custom post type menu item as “users” submenu?
- How to generate auto shortcode for custom post type same as Elementor Template?
- Query a Custom Post Type using SELECT that has ACF fields to compare dates
- I want to create a metabox under custom taxonomy
- How to output and alert message when updating a post
- Sql Update CPT from publish to draft and particular custom field
- Custom post type and custom page name
- Post list displaying wrong in Chrome and Firefox
- Custom post type meta fields missing on save_post_type
- Custom Post Type with Custom Taxonomy in Bootstrap 4 Accordion
- Hierarchical Custom Post Type Walker?
- Changing menu label to post name for custom post type
- How to display user-defined / custom post in wordpress?
- Featured image in custom post is being disabled
- Remove Custom Capability
- How to set class to “current-page” on the currently viewed single post within a CPT
- Is it possible to add query parameters on the archive page?
- Permalinks when using Custom Post Type with static page for archive
- Custom sortable pages on custom post type
- How do I add custom fields to posts without having to manually add everytime I post?
- How to change permalinks to taxonomy and post type’s posts
- Custom Catagory not found
- Query Only Show Text on Posts With Certain Taxonomy Tag
- Remove ?preview=true from the address of custom post types
- Custom Post Type to Upload Images
- Hierarchical Custom Post Types
- Custom Post type easy way for editors
- ACF select box css color change
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- is therer any wordpress function to retrieve a specific html element from post content
- How to rewrite custom slugs that follow my rules