How to include empty terms into wp-sitemap.xml?

Use the wp_sitemaps_taxonomies_query_args hook to set hide_empty to false: add_filter( ‘wp_sitemaps_taxonomies_query_args’, function ( $args ) { $args[‘hide_empty’] = false; return $args; } ); Explanation The list of terms in the site map is generated by the WP_Sitemaps_Taxonomies::get_url_list() method. The terms are queried in this method using the get_taxonomies_query_args() method to build the args for WP_Term_Query: … Read more

Is the Index template necessary in themes?

There could be edge cases where the index template could be used. For example, a plugin or a future WordPress version could introduce a new template hierarchy “type” that is not covered by any other template. WordPress would use the index template as a fallback in this case. Of note, the WordPress Theme Handbook mentions … Read more

Website content shifted all the way to the left

The Answer by @rudtek went in the right direction. But i see no reason you would need the Padding anyway? It seems like removing @media (min-width: 922px) { .ast-container { max-width: 1240px; } fixes the majority of your problem. After that you need to remove @media (min-width: 922px) { .ast-container { max-width: 1240px; } } … Read more

WordPress MediaElement audio player won’t seek and resets back to the start when files are locally hosted

Most likely the server is not handling byte range requests to support seek. Test if you get a 206 response from e.g: curl https://example.com/test.ogg -i -H “Range: bytes=0-1023″ Try (temporary) setting the preload=”auto” to your shortcodes to fully download the audio on page loads. See more here: How to test: https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests#requesting_a_specific_range_from_a_server Server ogg media config … Read more

Admin notices action failing to fire

posting as an answer for now as I don’t have enough rep to comment and am waiting for an account merge before i can update the original post. There is no problem with the debug logging, i have confirmed this by putting an error_log inside the run() function and this appears in debug.log. I have … Read more

WordPress returns empty page

the site seems to be infected by malware: https://sitecheck.sucuri.net/results/https/webscraping.pro which could explain the issues you have; these guides should help you deal with malware removal: https://wordpress.org/support/article/faq-my-site-was-hacked/ https://sucuri.net/guides/how-to-clean-hacked-wordpress/

Optimise page loading time faster on WordPress using Genesis child theme [closed]

There are plenty of ways to improve the speed of your WordPress site Irrespective of theme/ plugins you have used. Add caching plugin supercache which will show tremendous decrease in the speed loading time of your site. Put Following script in your sites .htacces file # BEGIN EXPIRES ExpiresActive On ExpiresDefault “access plus 10 days” … Read more