It was a simple typo as posted by @Sally CJ.
Instead of
$namespace + $base
Use
$namespace . $base
Thank you
Related Posts:
- Getting meta in editor plugin, and event triggering issue
- URL issue retrieving Custom Post Types using Backbone JS API
- How to dynamically register custom post type
- Create settings page to enable or disable CPT
- Make term slugs of custom taxonomy available in WP REST API for custom post type?
- With Rest V2 (WP4.7) how does one restrict certain RESTFUL verbs?
- How do I change the author of a custom post type?
- How to add a button to custom post type’s posts-page
- Creating a custom public user page
- Is flush_rewrite_rules necessary when creating a custom post type? Why?
- WP Rest API Querying Custom Posts by ACF fields
- How to get dynamically custom post type that are under a certain category
- Get the Category Name instead of ID from WP-API
- Remove Slug from Custom Post Type results in 404
- Unable to filter on field on edit.php page
- Get custom post type REST API not working
- Insert slider (Custom Post Type) into pages
- How do I create a custom post type for a training CMS in WordPress?
- WP Query group/order by category name
- Save or update data when custom post published
- Using posts and postmeta table to store custom Address Book Plugin data
- template_redirect not working, apparently for no reason
- How to add multiple featured image in meta box in post editor?
- Custom search with Custom Fields in WP REST API?
- How do I set the link in the Custom Post Type admin menu?
- How to List Thumbnails based on Custom Categories
- Adding Meta Boxes while Registering a Post Type in a Class
- handling csv data with a custom post type
- Custom Post Type and API REST is not working
- Custom Post Type | Fatal Error on register_post_type()
- Set object terms not working on plugin activation
- Using custom page templates with plugin [duplicate]
- Custom Post Type rewrite
- Admin notice not displaying
- Add custom parameter to REST API request of a custom post type?
- Custom Taxonomy Invalid in REST API
- Insert Multiple Post with Same Publish Button
- custom post type not showing in menu
- Adding a custom post type taxonomy template in plugin
- Plugin: register custom post types, child ready and performance best practices
- How to add a custom taxonomy to show up in a custom post type menu?
- Give a permalink to Custom Post Types without title
- Cannot add custom field to “orderby” parameter in Rest API
- Form action/link to render a plugin in WordPress front-end
- How to use TinyMCE Editor for one of my custom post meta field?
- How to Create a WordPress Plugin With Custom Post Type/Custom Field Features?
- Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
- Custom fields for custom post type
- Save Multiple Metabox values
- How to add/edit advanced custom fields on custom post type’s WordPress REST API?
- How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data
- post_parent in custom post type
- What’s an efficient way to change the post status of many posts at once?
- Dynamically insert code to custom post type loop
- How exclude or skip post type with get_next_post_link
- WP API Response does not show my registered metadata
- How do I add custom HTML to the content of an archive page’s posts?
- Custom REST endpoint not working to retrieve single posts (“rest_no_route”)
- How to add query args to links to CPT admin submenu
- How to handle new post from API request?
- wp-json API: not logged in when clicking link to the API from admin mode
- How to add and display custom content that is not a post
- Problem with adding custom post type meta to header by plugin
- Creating alternate meta box context locations
- Types plugin custom post add_action hooks
- Limiting Amount of Posts in a Custom Post Type again
- Not Able to Add New Class To CPT Attachment Image
- How can I create new CustomPostType record using wp.api.collections?
- Custom endpoint filtering post by custom taxonomies
- wp rest api orderby field in a custom table
- Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value
- Orderby custom fields is not working
- Why are custom taxonomies only appearing on the edit page of one of these types, but not the other?
- How to stop the custom post type URL from the google search?
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- How to add field to custom post type endpoint
- WordPress Custom Post Loop
- Changing CPT permalink
- Get all posts by many custom post types
- ‘Simple’ Reservation System
- Warning , Use of undefined constant PLUGIN_PATH?
- Issue with CPT posts within WP REST API showing as []
- Show Post columns to specific users on condition
- Saving custom post types post_meta over REST-API fails
- Custom Post type plugin is using theme single.php and style.css
- get_permalink() of page the enclosing page not posts
- Run query on specific admin options page and send results to select field in another function
- Not able to get all the actions (View, Edit, Quick Edit, Trash), and not able to delete post in custom post type
- call a function when insert and update a custom post type
- WP_Query doesn’t accept Category ID
- Error in WP Query. If variable is empty it is displaying previous post value
- Custom post type not being pulled in widget
- Registering an optional custom post type from a plugin
- Generate custom RSS from a plugin
- Issue on Counting CPT’s Under Taxonomy Term
- Add Excerpt On Quicksand Plugin
- Inserting into WP DB
- How to change post cpt with submit button?
- Custom Post Type featured option
- How to filter custom post data with AJAX?