Incorrect use of the function calls outside the loop
-
I see that YTIR sets up its own loop to cycle through the YTIR type posts. This, then would be nested inside the main loop, with non-deterministic results, like the main page excerpt showing in the slider info area. Function calls that are reserved for use inside the loop should be replaced with appropriate alternatives.
For example, replace:
get_the_excerpt()
with something like:
apply_filters('get_the_excerpt', $YTIR_ID->post_excerpt);
https://www.ads-software.com/plugins/featured-youtubeimage-slider/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Incorrect use of the function calls outside the loop’ is closed to new replies.