Title: Fix the code please
Last modified: March 16, 2018

---

# Fix the code please

 *  [Dima Stefantsov](https://wordpress.org/support/users/dima-stefantsov/)
 * (@dima-stefantsov)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/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.

 * ![](https://s.w.org/plugins/geopattern-icon/auto-seo-links_010101.svg)
 * [Auto SEO Links](https://wordpress.org/plugins/auto-seo-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auto-seo-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auto-seo-links/)
 * [Active Topics](https://wordpress.org/support/plugin/auto-seo-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auto-seo-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auto-seo-links/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Dima Stefantsov](https://wordpress.org/support/users/dima-stefantsov/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/fix-the-code-please/)
 * Status: not resolved