fix: convert post_date to string, show pod parameter descriptions

This commit is contained in:
Glen Whitney 2021-02-08 17:26:42 -08:00
parent 4a73e0551f
commit f25788118f
2 changed files with 9 additions and 5 deletions

View file

@ -3,7 +3,7 @@
Plugin Name: TablePress Extension: Pods tables
Plugin URI: https://code.studioinfinity.org/glen/tablepress-pods
Description: Custom Extension for TablePress to incorporate Pods information in tables
Version: 0.2.17
Version: 0.3.0
Author: Glen Whitney
Author URI: http://studioinfinity.org/
*/
@ -170,7 +170,7 @@ function playground_expand_pod( $table, $render_options) {
while ($pod->fetch()) {
$nrow = array();
$nrow[] = $pod->field('id');
$nrow[] = $pod->field('post_date');
$nrow[] = $pod->display('post_date');
$nrow[] = $pod->field('title');
$nrow[] = get_the_author_meta('display_name', $pod->field('author'));
$nrow[] = $pod->field('permalink');