New answers tagged

0

Is this happening if you remove the pre_get_posts hook? Either way, you can try wrapping the code in a conditional. while (have_posts() ) : the_post(); if ( 0 < intval( the_ID() ) { ... } endwhile; This is not quite as good as limiting the number of records returned by the query but it doesn't hurt to validate as you go along anyways.


0

I asked a more general (non-WordPress specific) question about polyfilling on StackOverflow (I strongly recommend reading through the ensuing comments for context) which has lead me to the following answer: add_action( 'login_enqueue_scripts', 'wpse_215432_oldbrowsersupport'); function wpse_215432_oldbrowsersupport() { wp_register_script( ...



Top 50 recent answers are included