diff --git a/src/flextype/core/Entries/Entries.php b/src/flextype/core/Entries/Entries.php index a17eda9d..bcb257ea 100755 --- a/src/flextype/core/Entries/Entries.php +++ b/src/flextype/core/Entries/Entries.php @@ -185,6 +185,7 @@ class Entries if (isset($collection['pattern'])) { if (boolval(preg_match_all('#^' . $collection['pattern'] . '$#', $id, $matches, PREG_OFFSET_CAPTURE))) { $result = $collection; + } } } @@ -842,9 +843,11 @@ class Entries * * @access public */ - public function setRegistry(array $registry = []): void + public function setRegistry(array $registry = []): self { $this->registry = collection($registry); + + return $this; } /** @@ -854,9 +857,11 @@ class Entries * * @access public */ - public function setOptions(array $options = []): void + public function setOptions(array $options = []): self { $this->options = $options; + + return $this; } /** @@ -897,6 +902,8 @@ class Entries ->trim()->toString(); }; + $processedEntry= []; + foreach($flatEntry as $key => $value) { // Process shortcodes for value if it's string type.