How wordpres query posts work?

How  wordpres query posts work?

uery_posts() is a way to alter the main query that WordPress uses to display posts. It does this by putting the main query to one side, and replacing it with a new query. To clean up after a call to query_posts, make a call to wp_reset_query(), and the original main query will be restored.

It should be noted that using this to replace the main query on a page can increase page loading times, in worst case scenarios more than doubling the amount of work needed or more. While easy to use, the function is also prone to confusion and problems later on. See the note further below on caveats for details.

For general post queries, use WP_Query or get_posts

It is strongly recommended that you use the pre_get_posts filter instead, and alter the main query by checking is_main_query


Warning: getimagesize(https://itfellow.com.au/wp-content/uploads/2014/02/mysql1.jpeg): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/itfekxul/public_html/wp-content/plugins/litespeed-cache/src/media.cls.php on line 801

Warning: md5_file(/home/itfekxul/public_html/wp-content/litespeed/css/38318078d7e468dd41dd032047579ef7.css.tmp): Failed to open stream: No such file or directory in /home/itfekxul/public_html/wp-content/plugins/litespeed-cache/src/optimizer.cls.php on line 140

Warning: rename(/home/itfekxul/public_html/wp-content/litespeed/css/38318078d7e468dd41dd032047579ef7.css.tmp,/home/itfekxul/public_html/wp-content/litespeed/css/.css): No such file or directory in /home/itfekxul/public_html/wp-content/plugins/litespeed-cache/src/optimizer.cls.php on line 145

Fatal error: Uncaught ErrorException: md5_file(/home/itfekxul/public_html/wp-content/litespeed/js/38318078d7e468dd41dd032047579ef7.js.tmp): Failed to open stream: No such file or directory in /home/itfekxul/public_html/wp-content/plugins/litespeed-cache/src/optimizer.cls.php:140 Stack trace: #0 [internal function]: litespeed_exception_handler(2, 'md5_file(/home/...', '/home/itfekxul/...', 140) #1 /home/itfekxul/public_html/wp-content/plugins/litespeed-cache/src/optimizer.cls.php(140): md5_file('/home/itfekxul/...') #2 /home/itfekxul/public_html/wp-content/plugins/litespeed-cache/src/optimize.cls.php(837): LiteSpeed\Optimizer->serve('https://itfello...', 'js', true, Array) #3 /home/itfekxul/public_html/wp-content/plugins/litespeed-cache/src/optimize.cls.php(382): LiteSpeed\Optimize->_build_hash_url(Array, 'js') #4 /home/itfekxul/public_html/wp-content/plugins/litespeed-cache/src/optimize.cls.php(264): LiteSpeed\Optimize->_optimize() #5 /home/itfekxul/public_html/wp-includes/class-wp-hook.php(324): LiteSpeed\Optimize->finalize('<!DOCTYPE html>...') #6 /home/itfekxul/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('<!DOCTYPE html>...', Array) #7 /home/itfekxul/public_html/wp-content/plugins/litespeed-cache/src/core.cls.php(477): apply_filters('litespeed_buffe...', '<!DOCTYPE html>...') #8 [internal function]: LiteSpeed\Core->send_headers_force('<!DOCTYPE html>...', 9) #9 /home/itfekxul/public_html/wp-includes/functions.php(5464): ob_end_flush() #10 /home/itfekxul/public_html/wp-includes/class-wp-hook.php(324): wp_ob_end_flush_all('') #11 /home/itfekxul/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #12 /home/itfekxul/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #13 /home/itfekxul/public_html/wp-includes/load.php(1279): do_action('shutdown') #14 [internal function]: shutdown_action_hook() #15 {main} thrown in /home/itfekxul/public_html/wp-content/plugins/litespeed-cache/src/optimizer.cls.php on line 140