Without adding your custom post type, it looks like you’ve got the function called wrong on the second one
add_action('admin_menu', 'mytheme_add_box');
// Add meta box
function referans_add_box() {
Do you want to say
add_action('admin_menu', 'referans_add_box');
// Add meta box
function referans_add_box() {
Related Posts:
- Do_Shortcode not working for Embed
- How do you get the count of posts in an archive page?
- Change permalinks for posts but not for custom post types
- Custom post type permalink: only use %post_id% and remove %postname%
- Sort custom post type list table by display name of a user id stored as post meta value
- Fetching private posts or custom post types via WP-API with basic authentication
- Remove admin menu for custom taxonomy attached to custom post type
- How do I list custom taxonomy terms without the links?
- Page not found taxonomy custom post type
- how to filter by last name for custom post
- Order Posts by Taxonomy and Meta Value
- Custom comment status possible?
- Get categories for a specific post – Custom post type
- Assign Page Template Within A Custom Post Type
- Group Custom post type in a page by its taxomony tag
- WPMU: Programmatically adding CPT posts to specific blog id
- Custom post types not imported properly
- query order by date on custom type: wrong order
- Call different archive page based on post type
- How do I echo the post type?
- Error after deleting Custom Post Type with a function (no trash used)
- Using posts and postmeta table to store custom Address Book Plugin data
- error in Advanced Search Form for Custom Post Types in WordPress array_key_exists() expects parameter 2to be array, string given
- Rewrite Custom Post Type URL slug
- Posts navigation in custom post type single.php not working
- Custom WP TItle from custom template with dynamic URL structure
- Custom Post Type | Fatal Error on register_post_type()
- taxonomy template for custom post type the same as the archive
- Custom Post Types for Support Ticket plugin?
- How to sort custom post type posts in default order by multiple fields?
- WordPress theme options vs custom post types
- if custom posts type exists and there are posts load script
- Custom Post-to-Post with multiple parents?
- Query string parameters from custom fields, inconsistent results
- create a template page for a post
- Adding Show Less/More link to Custom Post Meta
- Get custom taxonomies from multiple posts
- Post image in WordPress not appearing on home page
- WP_Query inside foreach loop returning same value for all options when filtered using ajax
- Limit number of custom posts per taxonomy
- Allow add new post access to custom post but not wp post for some role
- Displaying Posts from Custom Post Types
- Custom Post Types strange pagination problem
- Global $post shows null in some of my custom post types archive pages
- 404 in custom post type feed with mistake permalink
- Warning after create Custom post type with Roots theme
- Set featured image to archive.php
- Custom WP_Query doesn’t display all posts
- How can I use archive-{post_type}.php theme template?
- Custom Post Type conflicting with page?
- Pagination not working on custom query on a page
- How to properly delete custom post type posts programmatically
- Query within a foreach within a query (queryception)
- How to implement a different permalink structure for custom post type?
- Custome fields not displayed
- CMB2 metabox create select with list of post from CPT
- wp-json API: not logged in when clicking link to the API from admin mode
- Custom post type name and assigning custom taxonomy
- Custom Post Type for Shortcode Use – Prevent it display as a post (with slug)
- Custom post types, disable fields
- Custom Post Type Custom Archive Page Not Working
- custom post creation on front page – on submit a search is done
- Query Custom Posts – Add To Selection
- Related “custom post type” using “custom taxonomy”
- How to create Custom Taxonomy Search Drop Down for specific Post Type
- How to have multiple search result pages in wordpress with taxonomy terms listed
- Set priority to permalinks
- Display a Custom Post Type with Advanced Custom Fields on Homepage
- Loop through items created in a custom post type
- How to list posts by terms
- How to display all terms from all taxonomies in post, but separately for each taxonomy?
- Add a comments meta box to the custom post type
- Ordering Post by Meta Key (Not Working)
- CPTUI with Parent/Child categories – Template Structure
- In the admin, how can you list thumbnails instead of titles for a custom post type?
- Custom post type and taxonomy same slug
- Sortable column with custom taxonomy in custom posts type
- Single taxonomy for different custom post types
- Showing custom post user wise with different color in wordpress
- 2 custom posts types, in their own columns, one pagination for both
- retrieve custom post image through widget
- Custom post type with parent page? Possible?
- Custom Search Template for Custom Post Types
- Displaying taxonomy icon outside archive page
- Limit number of posts under a post type?
- Capability to edit own post, but not create new one
- Why won’t this rewrite rule work?
- Why is my custom form saving with ‘autodraft’ as title and slug?
- Select Menu for Custom post Type does not save
- Tags and Taxonomy links not working for Custom Post Types
- Geolocate Custom Post Type on Save
- One random post from multiple custom post types
- How to stream a linked file in WordPress
- How can i change url structure of cpt like this?
- Can I have a specific template for products even if they are standard posts and not CPT?
- Error 403 when posting comments to a custom post type from a different page
- Menu Structure and URL structure, with Pages and Post-Type-Posts
- WordPress does not show the custom fields box
- Create a hierarchical list of posts that’s grouped and nested by category
- Two pagination in one page without AJAX