@Poremsky.com

Tips & Tricks for Windows, Office, and Whatever

  • Home
  • Windows
  • Office
  • Web Design
  • WordPress
  • Internet Explorer

Create a list of pages in a parent category

Published on September 14, 2011 Last reviewed on September 28, 2016

In Create a list of pages in a specific category, I showed how I created index pages for my WordPress site. It works great except with two categories. These two categories are parent categories and the code includes the child categories too. Because the number of pages in each category is high, this is not workable.

I found more code samples that used an array to limit the posts to the parent category but I still needed to sort and control the number of posts per page. This code works great:

array(108),'posts_per_page'=>100,'order'=>asc, 'orderby'=>title));?>

Subscribe
Notify of
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Recent Posts

  • How to Remove Office Licenses from Windows
  • Use a JavaScript bookmarklet to open an archive for a webpage
  • How to fix records that are all in one column
  • Change Password or Pin Complexity after removing from Intune
  • Server drafts location is not valid error message

Recent Comments

  • Hornblower409 on How to Remove Office Licenses from Windows
  • FUAD on Remove Office Licenses from Windows
  • Brian DuBridge on Add the Recent Items Folder to Windows 10 Quick Access
  • Renee Moodie on Remove Office Licenses from Windows
  • John P on Remove Office Licenses from Windows

© 2026 · @Poremsky.com

wpDiscuz
Go to mobile version