== Observed Behaviour ==
Output is correct and the feature generally works as expected. max_posts is set to 2 in both Settings > Reading and functions.php
. However, the code above outputs as many posts as are given the "Home Feature" tag.
== Expected Behavior ==
The wcp_get_featured_posts()
function would only return 2 posts. (probably the most recent 2?)
== Other Notes ==
This code is from a child theme of a horrible Elegant Themes theme—not by choice. You'll note that the output snippet appears in home.php
which is used to output a static front page based on a proprietary setting that ignores the normal front page setting on Settings > Reading.
I wonder if this is somehow related to the home.php
misuse. In general, I can make no sense of the "Templates" section of the Featured Content documentation but it seems like it might be relevant.