From 1a0250a6deabb52b7fba2fe4fde5e45cff70eb11 Mon Sep 17 00:00:00 2001 From: Simon Mayerhofer Date: Thu, 31 Jan 2019 03:12:11 +0100 Subject: [PATCH 1/2] Fix: posts not added to main query --- pillar-pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar-pages.php b/pillar-pages.php index 50bbf7a..0742f2c 100644 --- a/pillar-pages.php +++ b/pillar-pages.php @@ -143,7 +143,7 @@ public function add_to_main_query( $query ) { $slugs = []; foreach ( $pillar_pages as $page ) { - $slugs[] = $page->post_name; + $slugs[] = 'pillar-page-' . $page->ID; } if ( $query->is_home() && $query->is_main_query() ) { From 6f9dfa9a46c1ba15ed453ae09e5a67cfd7c33a0e Mon Sep 17 00:00:00 2001 From: Simon Mayerhofer Date: Thu, 31 Jan 2019 03:16:56 +0100 Subject: [PATCH 2/2] Bump version --- pillar-pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar-pages.php b/pillar-pages.php index 0742f2c..927e5bb 100644 --- a/pillar-pages.php +++ b/pillar-pages.php @@ -2,7 +2,7 @@ /** * Plugin Name: Post Pillar Pages * Description: Use posts as pillar pages and create a Custom Post Type for every pillar page. - * Version: 1.0.0 + * Version: 1.0.1 * Author: Simon Mayerhofer * Author URI: https://mayerhofer.it * Plugin URI: https://github.com/SimonMayerhofer/wp-post-pillar-pages/