Try placing $myquery->the_post(); inside your while loop.
I think get_the_ID() and get_the_title() depend on that being setup first.
Also, wp_reset_query(); should be replaced with wp_reset_postdata();.
Related Posts:
- Action hook “wp_insert_post” works but not for last imported post
- Edit post image attributes on fly?
- Adding CASE in WP_Query
- Searching a tab/space delimited text file based upon form criteria and returning a ‘record’ into a word press results page
- Displaying page content from plugin, inside exising empty WP page
- Woo-commerce Update price as a Bulk from My offline software export
- Hook from plugin doesn’t fire up from external PHP script
- How to search post titles with whole words only, but not the exact word only?
- Trying to get property ‘ID’ of non-object in /wp-includes/class-wp-query.php on line 4044
- Use get_pages() before another plugin modifies it
- how to display recent post by category on home page
- How to Join wp_posts & wp_postmeta table using custom query
- What database state changes happen after a post is manually “updated” with no changes?
- update_option_{$option} not working (do function after options are saved)
- Callback hooked to post_updated firing on new posts as well
- any word search WordPress
- Warning: call_user_func_array() problem can anyone help with it?
- Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /../plugins/rm-payment.php
- Why do actions with class and public method don’t fire __construct()
- The function called on the wp head hook becomes null
- adding dynamic/multiple slug values in ‘option_none_value’
- i create functions.php in plugin files but add_action (‘wp_head’, ‘function_name’) don’t work
- Sharing varible between two add_actions
- How to get a specific string from a url
- Hooking into the HTML header container
- Discern a specific plugin’s action hooks
- How to remove default action from a plugin?
- Removing Plugin Action via Theme for Non-admins
- WooCommerce Product Table – filter query on attributes
- How to Unhook actions/filters in within Class in plugin
- Performance considerations – postmeta table versus new table for custom posts with foreign keys?
- WPML – Hook when language is switched (change user language)
- Nested Actions and Filters
- Use action, filter, or hook to append HTML to WordPress plugin function
- How to pass multiple custom fields as shortcode’s parameters
- Checkbox field that add a subscription product and change prices of other products in checkout and cart page
- Passing function into add_action always returns the first argument
- Is it possible to custom set query for a WordPress REST API response?
- Only return taxonomies that are linked to a category & product
- Get post content inside plugin class method
- How to add specific posts to specific pages in WordPress?
- Ajax call to php function doesn’t work PHP code
- Remove action added in plugin class from theme
- {status}_{post_type} does not run correctly?
- How to use information from the database in the front-end?
- User Following System
- Change hook to add_action in a plugin class
- How to fix slow comment query?
- Frontend AJAX Request causes Error: ‘Call to undefined function add_action’
- echo plugin results on pages
- ACF Query result in a new td (echo)
- Creating Admin Submenu Page via Class Method
- How to get bulk actions handler to display simple “Hello World”?
- Help needed with woocommerce (wc stripe) filter
- Why is WP template_include overwritting all templates rather than specified page?
- What action or filter can I use to change all the html returned from server for a page?
- Multiple Meta key in search
- What action/hook do I need to register to have my plugin handle front-end editing?
- wp_schedule_event function reference
- Why can’t I shove an instance of a class into a variable from a do_action hook?
- wp_login_form() ignoring login_form action hook
- History of page, interval of years
- Why doesn’t a form need an ‘action’ with a plugin that uses the post data?
- How to insert variable which contain array value in wp_options table?
- Passing a parameter to filter and action functions
- Run only on plug-in activation instead of wp_head
- how to repeat taxonomy in different places on wordpress
- Am I using an action hook correctly?
- plugins_loaded action is not working properly
- Trending Tags based on post views
- Shortcode in a blog post, footer and related products stop working
- Plugin does not create a custom table upon activation
- AJAX login without a plugin does not work. when add a action to function.php
- How to delete only user meta value (not key) from usermeta table in wordpress?
- How can i see/log all requests coming from a registration form (not from the UI)?
- Remove action working on functions.php but not in a plugin. Why?
- w3 total cache and post__not_in
- Plugin Hook: Get posts
- WP_Query Date Filtering Inclusive Being Ignored
- add_media_page function not creating submenu
- change output location of plugin function using a custom hook
- Second foreach loop breaking (Posts2Posts)
- Remove action plugin
- Removing this filter added by a plugin
- Advanced Custom Fields (ACF) Plugin – Random Image in Sidebar
- Ger posts from similar tags and categories
- Filter for modifying image on upload
- wp_query for more fields plugin
- WordPress filter function using query modifications
- Is it possible to cancel a post status transition?
- Which filters or actions involve with index page for plugin?
- wpdb get_var is not returning any result (verified mysql query returns only one value)
- WP-Snap too slow (caused by WP_Query?)
- WordPress Meta Query: Relation is not working correctly
- WordPress ultra slow if I click on posts?
- Insert data in custom table during new post creation
- Problem with executing a function on saving a post
- Making a Custom Post Type Publish Loop
- Include subtitle display to slideshow
- Checking url from plugin [duplicate]