@Poremsky.com

Tips & Tricks for Windows, Office, and Whatever

  • Home
  • Windows
  • Office
  • BlackBerry
  • 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));?>

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Print

Related posts:

Create a list of pages in a specific category Add a WordPress custom field and query on it Redirected Pages Keep Reloading in IE7 (Solved!) Custom wordpress fieldsUsing a WordPress slug and custom field query

Leave a Reply

2500
2500
  Subscribe  
Notify of

Recent Posts

  • Remove Office Licenses from Windows
  • Add a Confirm Unsubscribe Link in Sendy
  • Add the Recent Items Folder to Windows 10 Quick Access
  • A New Scam? Cashing in on Kohl's Cash
  • Windows 10: Pin Option Not Available at Logon

Recent Comments

  • Diane Poremsky on Add a Confirm Unsubscribe Link in Sendy
  • Andy on Add a Confirm Unsubscribe Link in Sendy
  • Andy on Add a Confirm Unsubscribe Link in Sendy
  • Mabel Hessel on How to open a registry file from a crashed computer
  • Brantley on Add Sequential Numbers to a Word Document

© 2019 · @Poremsky.com

wpDiscuz