I need to limit the number of listings a user can submit. I have read other posts that say to use either Bainternet Posts Creation Limits (https://wordpress.org/plugins/bainternet-posts-creation-limits/) or Limit Posts (https://wordpress.org/plugins/limit-posts/), but neither work. I tried both plugins but as Bainternet Posts Creation Limits hasn’t been updated for 2 years, I concentrated on Limit Posts.
The code in Limit Posts that checks whether post limits have been reached is found in limit-posts.php:179.
if ($pagenow == ‘post-new.php’){ //submit for review and publish
So this plugin doesn’t work with GeoDirectory as it checks whether limits have been reached when post-new.php is loaded. How can I edit this code so it works with GeoDirectory? I’ve tried some things but I’m not a programmer and I can’t get it to work.