Fix the code please
-
I have yet to test it.
Description is really great, looks EXACTLY like something I was searching for.
But I can’t even create link for my posts. Had to read through your code.new WP_Query( array( 'post_type' => $publicPostType->name, 'post_per_page' => -1,
Do you know, to disable limit you should set posts_per_page to -1? There is no such thing as ‘post_per_page’, you have it in every interface. I’m instantly scared to use your code, you are obviously experienced beyond just testing it.
TLDR: there is a misspelling of posts_per_page, you have missed ‘s’. It doesn’t work this way. Please fix.
- The topic ‘Fix the code please’ is closed to new replies.