PHP Classes
elePHPant
Icontem

WordPress Term Post Count: Get WordPress terms and posts using them

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-05-01 (5 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 118 All time: 8,386 This week: 1,043Up
Version License PHP version Categories
wordpress-post-count 1.2GNU General Publi...5.0PHP 5, Databases, Blogs
Description Author

This class can get WordPress terms and posts using them.

It can query WordPress database to query the taxonomy to get the posts that use a given term.

If the term has also a children terms, it can also query the posts of the children terms.

The list of posts to be returned may be filtered by post status.

Innovation Award
PHP Programming Innovation award nominee
August 2015
Number 9


Prize: SourceGuarding PHP encoder tool
WordPress is very popular blogging platform. Nowadays it can be used for many other purposes thanks to the many plug-ins that exist.

However when you want to integrate it with a separate application you need to write custom code to extract information in a WordPress blog.

This class can query the WordPress database directly to retrieve the list of posts that have certain associated terms.

Manuel Lemos
Picture of amani
  Performance   Level  
Name: amani <contact>
Classes: 3 packages by
Country: Iran Iran
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Plain text file PostCount.php Class Class file
Accessible without login Plain text file sample.php Example class example

 Version Control Unique User Downloads Download Rankings  
 0%
Total:118
This week:0
All time:8,386
This week:1,043Up