Closed Huskynarr closed 8 years ago
I test the current version of this library with my Wordpress (4.3) and it works with number
and offset
parameters. It does not use numberposts
and posts_per_page
param.
Okay, have it tested again on my Server. With PHP 5 is it no Problem, but with 7 i get this loop.
I get no Errors in the Log. In the Debugging i see, it come from package. :/
Can you switch to the dev-master
version of the package and retry with PHP 7.0, I have updated the package in the master
branch.
The problem is fixed, you can composer update
to get the latest version of this package. Please read the release note of the version 2.5.0 here
:thumbsup:
I don't know whether it is because of my Code, The Client or Wordpress. But i get always the last 10 posts wherever which limit is set. And in this posts are the draft and published.
My Code:
I think this is correct. It have works a long time(PHP 5.6, i work an the develop Machine with PHP 7). :/ Instead number I have numberposts and tried _posts_perpage.