2017 © Pedro Peláez
 

wordpress-plugin pkj-page-source

Wordpress plugin that lets you show custom post-types as rows or blocks in the content, to avoid manual duplication of content.

image

pkj/pkj-page-source

Wordpress plugin that lets you show custom post-types as rows or blocks in the content, to avoid manual duplication of content.

  • Friday, August 8, 2014
  • by peec
  • Repository
  • 1 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PKJ Page Source

Wordpress plugin that lets you add a source to page, to list custom post-types (forexample a list of the "service" content type below the main content on your /services "page")., (*1)

Installation

Install with composer. Add this to your composer file:, (*2)

"require": {
    "pkj/pkj-page-source": "dev-master"
}

Hooks

Changing the generated grid class definitions.

By default this plugin uses boostrap 3 column classes, (col-sm-X, col-md-X, col-lg-X), you can change this by adding this code in your functions.php file:, (*3)


add_filter('pkj-page-source_blocksizemap', 'my_theme_blocksizemap_hook'); // Customize this function for your needs: public function my_theme_blocksizemap_hook ($blocksizemap) { $class = ''; foreach($blocksizemap as $context => $perRow) { $bit = ''; switch($context) { case 'l': $bit = 'lg'; break; case 'm': $bit = 'md'; break; case 's': $bit = 'sm'; break; } $gridSize = 12 / $perRow; $class .= "col-$bit-$gridSize "; } return $class; }

Changing the "row" class to theme specific.


add_filter('pkj-page-source_rowclass', function () { return 'row'; // Change to your class. });

The Versions

08/08 2014

dev-master

9999999-dev https://github.com/peec/pkj-page-source

Wordpress plugin that lets you show custom post-types as rows or blocks in the content, to avoid manual duplication of content.

  Sources   Download

GPLv2 or later

The Requires

 

plugin wordpress grid source

03/08 2014

0.0.2

0.0.2.0 https://github.com/peec/pkj-page-source

Wordpress plugin that lets you show custom post-types as rows or blocks in the content, to avoid manual duplication of content.

  Sources   Download

GPLv2 or later

The Requires

 

plugin wordpress grid source

02/08 2014

0.0.1

0.0.1.0 https://github.com/peec/pkj-page-source

Wordpress plugin that lets you show custom post-types as rows or blocks in the content, to avoid manual duplication of content.

  Sources   Download

GPLv2 or later

The Requires

 

plugin wordpress grid source