I changed the first line of my code to this and it worked to limit the posts
$allcats = get_categories(array('child_of' => get_query_var('cat'), 'number' => 3,'order'=> 'asc'));
Now on to the next problem…Pagination
Related Posts:
- Different number of posts in each category
- How to limit user to publish post per day and per role?
- Restrict users from editing post based on the age of the post
- Restrict access to post if it is currently being edited
- WP_Query posts_per_page ignored
- Limiting the number of posts in WP_Query leads to unexpected result
- Limit posts per author role (excluding admin) in home page
- Restrict users post for himself
- How to limit posts by category
- How can i limit the number of posts created per category?
- Increase 10 post limit per page
- query post limits
- Custom Post Limit for homepage only without plugin?
- I want to show my post for limited time, how is it possible?
- How can I set a maximum allowed post size and number of posts submitted?
- Setting limit to posts or page creation
- How to limit post (Exception pages) for current user in each role in front end?
- Limit front-end submitted posts by role
- If user has 1 post then dont let him create new one [closed]
- numberposts not working
- How Can I Limit Users to Post Creation For My Frontend Theme?
- How to limit the number of results for all query_posts on mysite
- Set the limit to allow author when make post!
- wp trim function not working
- Remove image caption from post excerpt
- Invalid Post Type error when attempting to filter and Bulk Edit posts
- Change WordPress post-state in Admin Area
- Guest Author – How to modify my custom function code if the guest author URL will follow a particular pattern/format?
- Only display posts with comments
- How to update all post at once?
- Working Bootstrap Carousel Conversion to WP – Technical Questions
- Force update all posts in custom post type, no content changes
- add image map script to post
- How to Customize number of blog posts on first page?
- How to create shortcode to show the 2 latest posts
- Multiple authors for single post without plugin
- WordPress – Admin Manage Posts – Multiple Filters by Parent Category
- Author must complete profile info before they can publish a post?
- Advanced Custom Fields – Storing array value for further usage
- Sort posts by newest child while keeping hierarchy intact
- Custom Theme Want To Remove One Category From All Displays
- Instead of submiting an entire post, is there any way to submit a lite-post or a simple message?
- Check if post exists
- How Can i Get 5 Recent Post Title With Corresponding Link?
- wp_query ‘s’ parameter does not work with custom post type
- WP Query – duplicated posts once including tags in search results
- View the number of entries recorded per day
- Define a wordpress constant through plugin functions?
- Transfer WordPress post to RoR site: is the REST Api the only and/or best solution?
- Alternate row and columns every X posts
- Duplicate posts and change category
- recent posts for different categories
- Removing noindex posts from wp_query
- Is there a PHP script to replace post date with updated modified date
- Post visibility based on user role
- Set static page/post from another blog on same network
- remove post and categories/tags count from right now dashboard widget
- How to allow visitors to filter posts by multiple taxonomies
- Add title for previous and next posts to Yoko Theme
- Add $values to post_class()
- Limit the number of posts a category can have – newest post goes in, oldest one drops out, possible? plugin?
- Why are my paginated posts always returning the same results?
- a little direction on custom post type
- displaying flv-video attachment in post
- How come a YouTube link isn’t transformed into a shortcode inside the post content?
- Output Post with ACF Fields into other Post
- Add delay to publish post
- List all posts, pages and custom post types in admin
- How to share post?
- Plotting posts on a graph
- Selecting related posts
- Want to change the post every three days with in specific category
- Displaying all posts from other sites on the network on one site
- Saving canvas generated image when saving post causes 404 error
- Some custom post types did not return an object
- Modified core/image rendering not showing in posts – only on pages
- WordPress MySQL Search and replace with wildcard?
- How to display the pagination in my post list? [duplicate]
- WP Pages: Add checkbox, save and display
- display content in multiple columns
- Display WordPress Post By Date
- How to show content of specific item on the same page?
- Query post for today, if no post get the previous one
- How to get post_content while the post is being edited
- Post of a specific category – not to be seen in paging previous/next post
- $post->ID not working
- How to show main category related to that post
- How to Add Wrapper to Infinite Scroll Javascript?
- Add wp-link-pages to post
- How to get override the WP Admin Syndication feed limit for a custom feed?
- Redirecting to a post based on a GET parameter and a custom field
- Stop Authors from submitting spam post
- Adding Count Post in Page
- Custom post order returning posts from other categories
- How add class the_content();?
- Title displaying multiple times
- How can add custom commands in post-new.php in wordpress
- Filter/Sort Post Form On Taxonomy page
- How to move all images in a post to a single gallery for a bunch of posts?
- Display post by select it from a dropdown menu