Hi @actin
Whatever i do – the content of the first blog will not displayed – even if i delete this post (then the (bevore)2nd post will be empty)
Just to confirm the issue, the query loop is returning the first post as empty?
This continues even if you delete the first post etc. If that is the case it sounds like there might be a conflict on the site because I can’t think of settings that would cause that.
- What is the name of the theme you are using on your site. Can you temporarily change to a different theme and see if the issue persists
- Temporarily disable all plugins and check to see if the issue persists
Thread Starter
actino
(@actin)
Hi thelmachido
thanks for answer & sorry for my late reply – but I testet a lot an did a lot of reinstall WordPress/Database et cetra
and… there must be a bug…
I found a easy way to replicate – do absolute minimum install:
– Install(ed) WordPress 6.1.1
– PHP 7.4
– Theme Twenty-Twenty Two (or Thre)) (as this supoort theme?!)
– no Plugins (just aksimed)
– Added a Site & Posts
– created by APPREARANCE > EDITOR BETA a custom template, and choosen by the query-loop a pattern (e.g one with three columns)
RESULT:
– it display all three posts! PERFECT – but, it shows only the EXCERPT of each blog – because the Object uses POST EXCERPT.
BUG:
– so, i changed the “POST EXCERPT” into “POST CONTENT” to see all of the Content: THEN IT CRASHES: It shows all Post, but not the first Content of the first post (the order doesent matter.. always the top entry…)
Because its a fresh WP-Install, all updated an did just the minimum – i guess there must be a bug?
(event tough I created a template/pattern by my self…)
Thank you for your approach!
greez Actino
+++ UPDATE +++: on the first post, it displays the content of the page instead of the post … hmmm… did I have misunderstood something…?..
-
This reply was modified 1 year, 5 months ago by actino.
-
This reply was modified 1 year, 5 months ago by actino.
-
This reply was modified 1 year, 5 months ago by actino.
-
This reply was modified 1 year, 5 months ago by actino.
-
This reply was modified 1 year, 5 months ago by actino.
-
This reply was modified 1 year, 5 months ago by actino.
-
This reply was modified 1 year, 5 months ago by actino.
-
This reply was modified 1 year, 5 months ago by actino.
Hi @actin
I couldn’t reproduce what you mentioned, I created a new template for a sample page and I was able to display post content for all posts I have on the query loop block.
I am not quite sure why content is displayed like that on your end.
To make sure nothing is missing on the template I would suggest changing the contents on the page template following the steps in this short video below.
- I added the Query Loop and then used the list view to properly add the post content block + remove the post excerpt block.
If that doesn’t help, I would suggest adding a bug report so that developers can take a look.
I have the twenty twenty-three theme on the site + Gutenberg plugin + Askimet plugin
I was able to reproduce this. It does look like a bug with the core Query Loop as I tried different block themes and all had the same issue.
To reproduce the issue:
Add a new “Custom Template”.
Insert a Query Loop block, make sure “Inherit query from template” is toggled off, and select Post as post type.
In the Query Loop change the Post Exceprt to the Post Content block.
Save the template.
Go to Pages > Add New and create a new page.
Leave page content empty.
Set the page to use the new custom template created previously.
View the page in the front end and notice that the Post Content block is missing from the first post in the Query Loop.
Go back to edit the page and write a paragraph of content.
View the page in the front end and notice that now the first post in the Query Loop is displaying the Post Content but it is the paragraph from the page, when it should be the content of the first post in the query loop.
Thread Starter
actino
(@actin)
Hi thelmachido
Thanky for reply! – on the (backend) template it always displayed all content of every post >> but not on the website/page (see post 1 or picture: https://www.divefestival.ch/Frontend.png
Again, I tried a lot and finally found the bug:
On your video you have:
HEADER
GROUP
FOOTER
QUERY-LOOP
>>> If you remove at the section GROUP the Element «POST CONTENT» , it will not working anymore on your website: The content of the top post will not be displayed! Respectively, Post 1 shows the page content.
SOLUTION:
So, the solution is always to have a second «POST CONTENT» outside of the QUERY LOOP or POST TEMPLATE
( example: https://www.divefestival.ch/solution.png )
So, this is really a bug.
because its working without outside-Post content if you have just activated the POST EXCERPT inside the query loop
THANK YOU FOR ALL YOUR HELP THAT I RETESTS AGAIN AGAIN 🙂
Thread Starter
actino
(@actin)
@uxl Thank for your answer – i just saw it now.
WHAT SHALL WE / I DO?
– it concerns both theme: twenty twenty-two and three, they are from WordPress…
so, does we have to report a bug, because its from core..
=== CONCLUSION / WORKAROUND / SOLUTION ===
– add a POST CONTENT outside of the POST TEMPLATE or QUERY LOOP
Thread Starter
actino
(@actin)
Hi @uxl
thank you for reporting the bug.
Shall I close this issue with “resolved” – and add a final comment (workaround)?
Sorry – and THANK YOU
Thank you for making the bug report on GitHub, I believe it would help to keep the issue open in case other people are having the same issue and want to share their experience.
I’m running into the same issue.
- I created a custom post type (with CPT UI)
- Added posts
- Created a page + new template
- Added query loop to page template with title & content only, published
- Posts display on page, with first post missing post content
Using twentytwentythree with 6.1.1
-
This reply was modified 1 year, 2 months ago by alexpatin.
Since this has already been reported, I am going to mark this support thread as resolved.