-
I don’t understand how Query Loop and Dynamic Data work, I don’t even know if they have anything to do with it.
I want to create a news section for the website astcomp.com and for this I have configured the images and titles with Dynamic Data but I don’t know how to update them, in fact the images are empty.
The official video that explains this does not solve my doubts, please I need help. Thank you very much!
-
Hi there,
The dynamic data needs to be fetched from a source, such as a custom post type.
For your use case, to display a news section, you should create a custom post type called ‘News.’
Then, within the Query Loop block, you can design the layout and dynamically retrieve the image and title using the Dynamic Data settings.
If you want to update the content, simply do so within the News post type, just as you would with standard posts, and the Query Loop will automatically display the content based on the parameters you’ve set.
Does that clarify things a bit? Let me know if you have any further questions.
-
Sure, so my issue might be that I’m not creating posts as News. But, how is this done? Is there a specific setting in GB for news? Thanks a lot!
-
Does it work with tags?
-
There are a ton of videos saying that an Element should be created for posts, and now I don’t know what to think. Should Posts, Pages, or an Element be created? In my opinion, this is all a bit messy and poorly organized.
-
For example, I want to create a news post, but I only want the center part to appear (as seen in the editor preview). However, other unattractive elements get added above and below my blocks. Then, when I set Dynamic Data on the title or text, it stops appearing on the main page as a news item and changes to “There is no entry title”. I think a detailed video explaining this to the community is really needed.
-
I don’t really unbderstand what you are trying to do, if just post, WP creates archives/blog by default, the theme’s single post template is very simple, a featured image, a title, post meta (author/date), post content, and below that is the post navigation (previous/next post), and categories, tags.
If you want to disable any of them, go to customizer > layout > blog, you can choose to show/not show certain content on your single post.
I want to create a news post, but I only want the center part to appear (as seen in the editor preview).
You do not need to create an element for that, the default theme template should be enough for your needs.
-
Let’s go step by step.
I tried disabling elements in Layout > Blog, but nothing changed. My first issue is that an image and a comment section are showing up in my post, and I don’t know how to remove them. They don’t appear in the editor. I’ve shown you screenshots.
-
Ok, I managed to remove everything, but the comment box is still there. How do I remove it?
-
How can I add an image to the post so that it appears in the news loop without it showing up inside the post? Thanks, I know it’s a lot of questions.
-
The same issue occurs with the title and date. This is my second and main problem: how can I add a title and a date inside the post so they appear in the news loop on my main page? When I activate Dynamic Data on the title or date text, what I’ve written disappears entirely. The website is https://parroquiasancristobalboadilla.es/, just in case.
-
Good afternoon, I would appreciate a response to this. Best regards, and thank you.
-
Alvind
Apologies for the oversight; occasionally, a ticket may slip through in our helpdesk software.
Could you point us of the specific issues you’re currently experiencing on the site? It appears that a few have been resolved, if I’m not mistaken.
-
As you can read above, I’m having trouble associating photos, texts, and titles of my posts to the main page. Please take a look at my previous messages. Thank you.
-
Hi there,
if you’re having trouble building the Query Loop, then you could use the GB Pattern Linbrary:
https://docs.generateblocks.com/article/pattern-library/
In the Free Patterns there isa Section patter called: Query Loop F 1
Which has the elements you require.
Let me know
-
Good morning, David. Thank you for your help. I’ll summarize my problem with examples and photos. On my website, there’s a news section (photo 1), using your Query Loop F1 which, as you can see, is not configured correctly—some photos or text are missing. My issue is that I don’t know how to link everything properly. When I create a post (photo 2), I add a photo, text, and title, but it doesn’t link to the main page. In fact, when I activate the title in Dynamic Data (photo 3), it completely changes. I don’t understand what’s happening, and after hours of trying to figure it out, I think it’s insufficiently explained. Thanks again.
- You must be logged in to reply to this topic.