add_options_page()
automatically adds it underneath settings, however add_submenu_page()
gives you control as to where you want it to show up.
Try something like this:
add_submenu_page(
'edit.php?post_type=portfolios',
__( 'Test Settings', 'menu-test' ),
__( 'Test Settings', 'menu-test' ),
'manage_options',
'testsettings',
'mt_settings_page'
);
Related Posts:
- How to give position to Submenu under custom post type
- Add Settings to Custom Post Type
- Insert & order custom post types in/as submenu
- How to add a custom taxonomy to show up in a custom post type menu?
- Show category and tag link as a submenu under custom post type submenu
- Create an administation subpage containing posts in a certain category
- Post to type posts in subdirectory. [closed]
- Custom post type submenu sorted by specific meta_key & meta_value
- Using save_post to replace the post’s title
- How do I safely change the name of a custom post type?
- meta_query for keys that aren’t yet set
- Add “Last Edited by” column to custom post type list table
- get post type plural
- Query menu_order custom post types
- using the_permalink to echo an href into a
- How to show the taxonomy assigned to a post in the table (where all the posts are displayed) of the custom post type?
- Is it possible to define the data type of a Custom Field?
- Order custom posts by taxonomy?
- Pretty paged permalinks in custom post type loop
- Maintaining strict one-to-one association between terms and custom posts
- Downsides to not using built-in “Posts” post type?
- custom post type archive template per custom taxonomy term
- Custom metabox translation
- Get all taxonomies for all post types
- How to make custom post meta wp_editor translatable?
- Lock post meta block at the bottom of a custom post type
- Linking three taxonomies with ACF
- How do I set the link in the Custom Post Type admin menu?
- How to List Thumbnails based on Custom Categories
- After updating a page, all pages on the site used the index.php template
- Meta_query with relation ‘OR’ killing server CPU
- How to post twitter like updates on wordpress
- custom posts on different page
- show_in_rest false disable Gutenberg
- How to add pagination to wp_query [duplicate]
- Custom Post Types and independent Categories – complex Taxonomy
- WordPress Ignoring My Custom Post Type Templates?
- Storing posts from query and accessing later via AJAX call
- Give a permalink to Custom Post Types without title
- Return one unique custom post type result when it shares a custom taxonomy in WP_QUERY?
- Custom Tag Description unable to display just below and outside of the Loop
- Custom post type + category archive page
- List all posts in a custom post type with pagination (the correct way)
- Rewrite custom post type url – Multiple post types
- Custom Post Type Archive Error, Takes Last Post as Title and Doesn’t Work
- Adding the_content() in custom template email
- set permalink for CPT
- Post 2 Post: Getting connected ‘person’ from post author
- My archive-posttype.php template is not loading
- Does WP have a global of $id?
- Check if post has specific tag_ID in custom post type
- Global custom meta box
- custom post type vs. conditionally displaying meta boxes for specific terms?
- data-type=”” … needed post tags stripped of characters
- Add first letter of titles to array, then compare arrays
- Bootstrap accordion looping through posts incorrectly
- Use Pages for Custom Post Type
- Create a list of recent Custom Post Types posts
- Get post ID of either existing post or new post
- Create a simple Testimonial page
- next page with custom post
- What should I learn to develop event management in wordpress? [closed]
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- What is the best way to manage small blocks of content on my home page?
- Only looping through pages that have children or subpages
- How to sort WP_Query by a custom text field (written as a date dd/mm/yyyy)
- Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value
- Custom post type rewrite url structure with taxonomy and sub taxonomy
- list articles in admin showing nested categories or slugs?
- Hide the update button from edit view in wordpress custom post type
- Custom metabox with image gallery upload that won’t attach images to post
- Standard Page Child of CPT Not Found (404)
- Custom Post Type parent/child relationship rewrite rules for permalinks
- Related posts by taxonomies does not work , what could be the reason?
- Display first post of a term in taxonomy template
- How to transfer categories (default) to custom taxonomy?
- How to stop post status from reverting to Published?
- Query posts based on user preferences
- call a function when insert and update a custom post type
- How can I remove “Add new” button on custom post type
- Custom Pagination based on Custom Post Type
- Link Custom Post Type Sidebar to Page/Posts
- WordPress custom post type
- How to have working breadcrumbs with several taxonomies associated with a custom post type
- Custom Post type archives / categories give 404
- Sorting on Taxonomy in archive page
- Redirect preview single post link to a page
- Yearly Archive from a custom date metabox (Event Start Date)
- Custom options for a Custom post type
- 404 with Custom Post Type
- Custom loop won’t work, can’t find problem
- link posts to custom post type
- Add top-level menu pointing to a different custom post type?
- custom post type not getting archived?
- Most appropriate way to display CPT’s by children terms of custom taxonomies while retaining desired permalink structure?
- See the process of creating a taxonomy and tell me where I made a mistake
- Google Analytics Dashboard for WP in Custom Column
- Navigation won’t update to show full path to single post
- Elementor Custom Query to get Posts by ACF (Post Object Field
- Make term slugs of custom taxonomy available in WP REST API for custom post type?