Suresh
what is the custom post type you want to hook into?
You need to make sure you change the $custom_post_type=”put-post-type-here”; line to be the actual custom post type slug you want to hook it into. Then, I would suggest adding the function to the functions.php.
And try it this way:
add_action('admin_menu','new_appip_custom_post_type_metabox');
function new_appip_custom_post_type_metabox(){
if(function_exists('amazonProductInAPostBox1') && function_exists( 'add_meta_box')){
add_meta_box( 'amazonProductInAPostBox1','Amazon Product In a Post Settings', 'amazonProductInAPostBox1', 'put-post-type-here', 'normal', 'high' );
}
return;
}
Related Posts:
- Get the ID of the latest post
- Do_Shortcode not working for Embed
- Get list of all registered post types slugs
- tag.php doesn’t work with tags on a custom post type post?
- List most recent image uploads, but only for specific custom post type
- Fetching private posts or custom post types via WP-API with basic authentication
- If featured image doesn’t exist, show post content
- Getting a div content of a post in wordpress?
- Rename a current used post type
- Include custom post types in categories widget
- add_meta_box: Datepicker like the one for postdate?
- Getting taxonomy terms used by custom post type
- How do you use JavaScript to detect the homepage
- Custom field losing p tags on display
- Categories not working as expected with custom post type
- Custom Post Type rewrite rules not working, how to alter the rewrite order?
- Calculating Bayesian average for custom post type
- Custom Post Types and Categories?
- Custom post type ‘orderby’ => ‘meta_value’ not working
- Parent & Child Taxonomy slugs in custom post permalink
- get_template_part and template file names
- Loading custom post thumbnail into stream
- WordPress custom loop filter by meta_key and value with serialize data
- How inefficient is it to use a Custom Post for 4-5 sentences & pull all to 1 page?
- the_content() not outputting anything (Advanced Custom Fields)
- Change custom post type slug from plugin options
- Custom Post Type With Categories
- How to use has_archive but disable feed per post type?
- Custom Taxonomy back-end customizations
- WordPress CMS Inquiry
- Custom rewrite url category
- Why is this query not working? (Standard posts + custom post type)
- Edit the author of custom post type
- How to Create a WordPress Plugin With Custom Post Type/Custom Field Features?
- browse by category and tags?
- How to: wordpress job listing and candidates details
- How to set the seo title tag on a page by page basis?
- Hide if Custom Post Type is empty
- Show ACF to front end custom post [closed]
- Combine multiple getEntityRecords calls
- Custom URLs in post types make it impossible to view archive
- How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data
- Add custom attributes to a post
- How to make a meta box?
- Permalink problems with custom post type and custom taxonomy
- Custom Post Type Categories URL not displaying posts
- Custom order of Taxonomy Terms
- How to add a lightbox to class mix?
- Custom post type subtaxonomy template
- tax_query (if the terms are empty)
- Getting only one post per category
- passing values from functions.php to template
- How I can made a custom post type to page templates?
- Odd behaviour for the update button when displaying a WP_List_Table
- Problem with adding custom post type meta to header by plugin
- trying to show single post but displays all post on a custom post type
- List all posts in taxonomy term
- insert image with custom post type
- Query all post types but limit to parents
- get post count for related author
- Post/Custom Post Type URL Access
- Adding link to dashboard sidebar, nested under custom post type
- What’s an easy way of sorting custom post types manually?
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- How to Implement Search Functionality?
- Adding /blog in front of single posts (only)
- wp rest api orderby field in a custom table
- Post template with breadcrumb needs to show page navigated from
- WP_Query get always custom post_type for first
- Custom post types – meta_query: search lesson which starts sooner
- Saving custom post types post_meta over REST-API fails
- template id=”1921″ from inside editor doesnt work?
- Custom Post type plugin is using theme single.php and style.css
- WordPress Custom Post Type – Post Attribute: Template. Template shows up and saves on the back end, but the default theme file is being rendered
- CPT year wise archive based on custom date Field
- Is there a way to re-order the Custom Taxonomy drop-down on a Custom Post listing page?
- Permalink Problem with Custom Post Type
- Automatically convert standard posts with custom fields to custom post types
- Remove custom post type slug but keep related category taxonomy permalink
- Adding CPT changes entire layout of my site except for the archive of that CPT
- page not found for example.com/custom-post-name
- How to show Y number of custom posts after every X normal posts?
- Why is my custom post type shown in the wrong place?
- Display Custom Post if custom field is marked
- predefined custom field on registration page
- multiple custom post type category selection search
- Custom Search Template for Custom Post Types
- Custom post type category page not working
- Turn off comments for given CPT checkbox?
- Cannot modify a registered custom post type rewrite slug
- List a custom post type’s posts ordered by nested custom taxonomy
- listing custom post type category page
- Inserting random posts
- Sorting custom post types by category?
- Allow authors to create article image
- Select Category as Page Parent
- Rewrite a filter as shortcode (or something like that) to use anywhere in CPT
- How to delete unnecessary custom post types in the UI
- Adding custom theme template to custom post type [duplicate]
- Delete old thumbnail when updating new