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
With the "Top Stories" layout active, $post is undefined in several places on the homepage.
$post
The text was updated successfully, but these errors were encountered:
@benlk Do you think we should we just change $post to the_ID() in this context, or actually make a $post variable?
the_ID()
largo_excerpt( $post, 3 );
Sorry, something went wrong.
If possible, we should pass the WP_Post object to largo_excerpt rather than the post ID:
https://github.com/INN/largo/blob/37e7b9dbf3e40072fb15b9ebf25e81f73d20daef/inc/post-tags.php#L184-L198
@benlk So couldn't we just pass get_post instead of $post?
get_post
Yeah, that looks like it would work.
Undefined variable $post in homepage/templates/top-stories.php
joshdarby
No branches or pull requests
With the "Top Stories" layout active,
$post
is undefined in several places on the homepage.The text was updated successfully, but these errors were encountered: