Site logo

[Resolved] Display whole small posts on archive page

Home Forums Support [Resolved] Display whole small posts on archive page

Home Forums Support Display whole small posts on archive page

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #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.

    #2406902
    Ying
    Staff
    Customer Support

    Hi 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.

    #2406907
    Quested

    Yes, I mean full post instead excerpt.

    #2406927
    Ying
    Staff
    Customer Support

    then you can add a dynamic content block (the icon is GP logo) in the content template.

    #2406945
    Quested

    Can you share any reference link or screenshot. Please

    #2406955
    Quested

    I got it now.
    Thank you so much for your help.

    #2406970
    Quested

    Thanks again

    #2406991
    Ying
    Staff
    Customer Support

    Glad to hear that 🙂

    #2407286
    Quested

    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.

    #2407295
    Fernando
    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?

    #2407306
    Quested

    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.

    #2407309
    Quested

    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.

    #2407321
    Fernando
    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

    Example: https://share.getcloudapp.com/yAuQdQeZ

    #2407352
    Quested

    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?

    #2407359
    Fernando
    Customer Support

    You can do so by adding the Query Loop Block through a Block Element – Hook. Hook it to after_header for 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.

Viewing 15 posts - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.