You could do it with something like this in theme functions.php (at end)
add_action('admin_menu', 'news_admin_test');
function news_admin_test() {
add_menu_page( 'News Page Title', 'News Option', 'manage_options', 'newspage', 'show_menu_news', get_home_url() .'/wp-content/themes/my_theme/assets/img/logo.png' );
}
function show_menu_news () {
echo 'News content';
}
Related Posts:
- meta_query with meta values as serialize arrays
- WP_Query with checkbox meta_query
- How to grab metabox value in wp_query meta_query key
- meta_query with meta values as serialize arrays
- Query by meta value (add a dropdown of all values)
- Saving custom fields for WP_Query to retrieve
- How to show all the associated posts with specific date of data metabox?
- Order by multiple meta key and meta value [closed]
- WP Query Args – Title or Meta Value
- Meta query with string starting like pattern
- Does tax_query really beats meta_query in all situations?
- Query WooCommerce orders where meta data does not exist
- Execute a large WP_Query with many “AND” Meta_Queries?
- Query all posts where meta value is empty
- WP_Query min and max values
- WP_Query using meta_query with relation OR and orderby meta_value doesn’t work
- querying with custom meta field with meta_query
- Order by two meta keys
- multiple meta key but get server load is very high
- Finding all results from database within 500 miles of the given latitude and longitude [closed]
- Use meta_query to display events by date in custom field
- Meta-value query
- Meta query field order together with post_date order causes posts without the meta field to be unordered
- How to show recent and upcoming birthdays using meta_query
- pre_get_posts filter meta_query without conflicting existing meta_query
- Undefined property: WP_Query::$post
- Programmatically set ‘meta_query’ for filter
- Using WP_Query and WP_Meta_Query Outside of WordPress
- WP_Query meta_query >= date
- Extending woocommerce admin product search
- WP_Query on custom field and order results
- Complex Orderby Parameters: How to query with multiple orderby parameters using meta_value_num?
- Adding an array from a query string to a WP meta_query
- Query multiple meta values
- Query by multiple meta elements not seeming to work – wordpress is timing out
- How do I make a meta_query OR relation work? [closed]
- Extend product search with meta in WooCommerce
- How does one perform a sub query with different post types
- how to make members list directory through wordpress post custom meta key.
- WP_Query with meta_query dosen’t return results
- meta_compare not comparing whole integer
- How to provide meta_key array to wp_query?
- meta queries do ‘either/or’ checks
- How to set up hierarchical relationships without using plugins / meta query
- WP Query ordering on a meta field for posts with a date in the future not ordering by datetime
- Selecting posts with a given meta value for a meta key
- Meta query compare for ID’s greater than specific ID
- Get every post with value in meta key
- get_page meta query not working, maybe a bug?
- Is it possible to add relation between meta_query and tax_query?
- Query by date from custom field
- Is it possible to retrieve posts depending on meta_key LIKE condition? [duplicate]
- Show single posts date, in a page of posts
- WP_Query Class custom field parameters
- WP_Query not returning correct result with meta_query parameter
- meta_query where the meta value is not the post title
- Order WP_Query by meta_key priority when ‘OR’ relation used for multiple meta values
- Meta Box WP_Query array for showing items with a certain relationship
- Query on meta values and post title
- How do i create a custom post query when the meta value is an array?
- Add metabox if there is at least one post available
- Custom Meta Query doesn’t work the same on two site
- Woocommerce Get Orders By Meta Value
- meta_query is overriding default search
- Multiple WP_Query args combinations according to post type
- WP_Query multiple value not working
- How to do WP_User_Query for Nested Array value Inside Nested Array field
- Query for current post
- Custom query to retrieve oldest post and retrieve others with date interval
- WP_User_Query Orderby Not Working
- Unusual high query of user meta data
- WordPress Query optimaization for slow query
- How to filter on placeholder image
- Slow wp_posts and wp_postmeta query using Advance Custom Fields
- Meta query doesn’t remove placeholder escape before query
- Wp Query sort order
- WP Query Meta Query
- Query custom meta value – post view and date meta
- What is the best way to reset a search on a meta_key / meta_value?
- Slow query when selecting with large meta query or post__in
- How can I modify standard search query to include also ACF custom fields values?
- Custom WP_query and integrating into theme file
- WP_Query – show posts where meta value and user_email match
- WP Meta Query at depth 2
- Best way to Order Post in Home without a plugin
- WP_Query using meta_query with LIKE doesn’t return what it should
- Is there any difference between below WP_Query code snippets?
- Return a single custom post from multiple meta queries
- Sorting: custom query with orderby meta_value_num THEN by title
- query post based on comparison
- Including ‘cat’ => $cat breaks meta_query
- meta_query compare not doing what I want it to do
- Query string form $_GET[‘value’] is not working as meta value in wp_query
- Can’t figure out query logic
- WP_Query orderby not working on custom post_type
- 294 Queries on Mainpage of WordPress
- How to get all post_id and meta_value using meta_key in wp_postmeta table
- WP Query – Show custom posts only if user contain some user meta
- How do I subquery with custom meta fields?
- Showing Counts on Comment List with Custom Query