JDWordpress  v.2014-02-11
Wordpress Plugin for CakePHP
JDBlogPostHelper.php File Reference

Part of plugin JDWordpress More...

Data Structures

class  JDBlogPostHelper
 This class implements the display helper for the JDWordpress plugin. More...
 

Detailed Description

Part of plugin JDWordpress

This helper provides functions to add to your layout and/or views to display some of the convenience features offered by the JDWordpress plugin.

This helper helps you display several things from the Wordpress database without having to use requestAction. The tradeoff is that internally we are not abiding by Cake's MVC convention. This helper accesses the Component directly. It will not affect performance of your application, and in theory should be much quicker than requestAction.

Instead of using this helper, you might consider instead using the included JDBlogPostDataComponent to set data for the view in your AppController (or any of your controllers) and display the data normally.

  • getOneRandomPost()
  • getSitemapBody()
  • tocArticlesWithDateHeaders( $slug = {all} )
  • tocForTaxonomyType( $type = {category} )
  • tocRSSForTaxonomyType( $type = {category} )
  • tocRecent( $slug = {all} )
  • tocTaxonomyArticles( $type = {category} )
Date
2014-02-12
Author
Jim Derry