- This topic has 18 replies, 4 voices, and was last updated 3 years, 5 months ago by
David.
-
AuthorPosts
-
November 8, 2022 at 11:40 am #2406858
Quested
Hi Awesome people
I need your help again. My client is using “Daily Posts” Custom Post Type for small daily updates where she share small content update like we have on Twitter. She wants that these should appear in Archive Page same way on the actual post.
Example:
if shares a video link in post, it should show video. If she shares a image then image should appear in Archive Page.I could have done this without using CPT. But she want that these small posts should show the time and date.
Can you guide me if its possible and how can I achieve this.November 8, 2022 at 12:14 pm #2406902Ying
StaffCustomer SupportHi there,
I’m not sure I understand your question, do you mean you want it to show the full content instead of the excerpt on the CPT archive?
I see that you are using a content template for the CPT archive, then you can add a dynamic content block (the icon is GP logo) in the content template.
November 8, 2022 at 12:18 pm #2406907Quested
Yes, I mean full post instead excerpt.
November 8, 2022 at 12:34 pm #2406927Ying
StaffCustomer Supportthen you can add a dynamic content block (the icon is GP logo) in the content template.
November 8, 2022 at 12:47 pm #2406945Quested
Can you share any reference link or screenshot. Please
November 8, 2022 at 12:57 pm #2406955Quested
I got it now.
Thank you so much for your help.November 8, 2022 at 1:14 pm #2406970Quested
Thanks again
November 8, 2022 at 1:26 pm #2406991Ying
StaffCustomer SupportGlad to hear that 🙂
November 8, 2022 at 7:14 pm #2407286Quested
Can you guide me to use content template on Homepage. Client wants to show latest daily posts on Homepage, please. I used the Generate Block’s Image and Query Loop but its not showing videos like its showing on Archive Page.
November 8, 2022 at 7:24 pm #2407295Fernando Customer Support
Hi Quested,
The Front Page is a static page. You’ll need a Query Loop Block as opposed to a Block Element – Content Template.
May we know what would be the difference between Latest Daily Posts and Latest Articles on the front page?
Also, can you provide the link to a specific archive page we can view that has a video?
November 8, 2022 at 7:36 pm #2407306Quested
My client is using “Daily Posts” Custom Post Type for small daily updates where she share small content update like we have on Twitter. She wants that these should appear in Archive Page same way on the actual post including image and video posts. I was able to achieve this by using Dynamic Content. But only for Archive Page.
November 8, 2022 at 7:38 pm #2407309Quested
As mentioned above that I used the Generate Block’s Image and Query Loop but there is no option in Query Block to show videos like its showing on Archive Page.
November 8, 2022 at 8:03 pm #2407321Fernando Customer Support
I see. Thank you for clarifying.
How are you currently adding the Query Loop Block? If you’re adding it directly to the page, can you add it through a Block Element instead?
Then, add a Dynamic Content Block inside the Query Loop Block to retrieve the content of the Custom Post Type single post. Reference: https://docs.generatepress.com/article/dynamic-blocks/#dynamic-content
November 8, 2022 at 8:36 pm #2407352Quested
Exactly my question. How can I add Dynamic Content Block inside Query Loop Block
I used the Block Element for Archive Page. That’s working alright. but how can I use Dynamic Content Block to show Custom Post Type on Homepage?
November 8, 2022 at 8:48 pm #2407359Fernando Customer Support
You can do so by adding the Query Loop Block through a Block Element – Hook. Hook it to
after_headerfor instance. After which, you should be able to insert a Dynamic Content Block inside the Query Loop Block as I have done in the screenshot above. -
AuthorPosts
- You must be logged in to reply to this topic.