-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
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
post-content like post-excerpt and vice-versa? #43
Comments
While trying to create a simple test for the problem I accidentally moved a block from a dynamically displayed post out of the Post content block. This shouldn't be possible. Here the WordPress block came from the post entitled WordPress. |
Here's the result where page Aaf uses a query to display the last post in two columns with Post content on the left and Post excerpt on the right. The Post content looks more like that which I'd expect the Post excerpt should look. |
The content of page Aaf is
The content of the post with the highest title ( Zzz ) is
|
Expected result - front endExpected result - editorPost contentThe More block should not be a problem Post excerptShould be processed the same as on the front end.
or
|
I've been retesting this using the original data for #27 and I'm still getting strange results. The content of post B is
When displaying the post excerpt for B I'd expect to see "B's normal excerpt" What I'm actually getting is just the post content, there's no post excerpt.
Perhaps it's my understanding of what the more block is supposed to do! |
OK, the reason we don't see post excerpt is because it's not included in the post-template. I should be attempting to reproduce the problem with page Aaf and post Zzz. Environment now is
These were the results testing with WordPress 6.0.1 and Gutenberg 12.3.0 |
With WordPress 6.2-RC1 and Gutenberg 15.3.1 the results are different.
The Expected result - front end that I documented on 23 Nov 2020 at 10:54 pm reflects the results I used to get using the [bw_pages] shortcode displaying post_content (C) or post_excerpt (E). |
Well, the
post-content
block appeared more like an excerpt than post content.In order to fix this I had to change the core function
get_the_content()
to set$elements['more']
to true, sincegenerate_postdata()
hadn't.Not surprisingly this didn't resolve the problem with the
post-excerpt
ignoring themore
block.Originally posted by @bobbingwide in #27 (comment)
Problem
core/post-content
when nested in a query in another post's query-loop'score/post-content
block is broken by a more block.While developing my fix for the
post-content
infinite recursion problem, I became aware of a problem with the display of post content in the nested posts. The workaround I implemented for #27 was to eliminate the more block from the content that was being displayed.In the above screen capture I've re-introduced the
core/more
block into the Aab page.The post content should be 'Aab - excerpt before more. Aab - post content after more.'
The More link shouldn't appear.
The text was updated successfully, but these errors were encountered: