We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently {{ page.excerpt }} returns the first line of content if it is empty in WordPress. This is not desired on the template Sean is working on.
Ideally this would behave like so:
public function getExcerpt(int $limit = 200): string { if (empty($this->excerpt)) { return $this->trimContent($this->__toString(), $limit); } return $this->excerpt; }
The text was updated successfully, but these errors were encountered:
One solution, which does break backward compatibility:
public function getExcerpt(bool $generate = false, int $limit = 200): string { if (empty($this->excerpt) && $generate) { return $this->trimContent($this->__toString(), $limit); } return $this->excerpt; }
Sorry, something went wrong.
No branches or pull requests
Currently {{ page.excerpt }} returns the first line of content if it is empty in WordPress. This is not desired on the template Sean is working on.
Ideally this would behave like so:
The text was updated successfully, but these errors were encountered: