A front-end WordPress framework with a set of many extendable class wrappers, inpired by the MVC ideology
GNU General Public License v2.0
18
stars
3
forks
source link
Check if there is a post to use in the default context #1
Closed
RadoslavGeorgiev closed 8 years ago
Currently, unless on a 404 page, the default context uses
Post_Type::factory()
.On an archive page, there could be no posts (ex. homepage on a fresh blog), but it's still not a 404. make sure that this does not throw an exception.
Q: Can we safely use
have_posts()
to check this?