Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #300090

    moebis
    Participant

    Quick question. If I’m using cornerstone for the layout on my homepage and I want to show recent posts, is there any way to get them to display like the blog template? What I mean is I want to show the metadata like date, author, category, comment counter. Right now, using cornerstone, I can only have the post title and date, and the featured image is a size and aspect ratio that I don’t want. I user a 3:1 aspect on my featured images, and it’s cropped.

    #300542

    Rue Nel
    Moderator

    Hello There,

    Thanks for posting in! The recent posts element will only display the featured image, title and the date. If you want to display other post meta, you will need to customize the recent posts element in order to display the author, category and comment. Please check out this topic:
    https://community.theme.co//forums/topic/recent-post-excerpt-and-excerpt-length-cornerstone/#post-298809

    Thank you.

    #300659

    moebis
    Participant
    This reply has been marked as private.
    #300726

    moebis
    Participant

    or even better is there a shortcode to call the blog output (like it displays on a blog page) with the post metadata, so I can output it at the end of my cornerstone pagelayout? minus the post excerpt. I want the featured image (in the right aspect like it is on the blog layout), the title, author, date, category, comment counter. I can skip the post excerpt and tag blocks.

    #301042

    Rue Nel
    Moderator

    Hello There,

    If you paste the code in your child theme’s functions.php, the output of the recent posts element will change. That code only includes the excerpt. You still have to add some codes to display the other post meta. Right now, we do not have have any other element that will display the blog output. There are plans underway to have it with other features to fill up the gaps that are not covered with the recent posts element. We do not have any ETA yet. Surely, it will be in our next future updates.

    Cheers.

    #303166

    moebis
    Participant

    Thank you for the reply and update. Can you at least point me to where the code is (file/line numbers?) that renders the normal blog page output, so I can (through trial and error) make the cornerstone function “x_shortcode_recent_posts_v2code” render it accordingly? Thanks.

    #303419

    Paul R
    Moderator

    Hi,

    Normal blog page is being rendered in

    wp-content\themes\x\framework\views\{STACK}\wp-index.php

    AND

    wp-content\themes\x\framework\views\global\_index.php

    Hope that helps.

    #304503

    moebis
    Participant
    This reply has been marked as private.
    #304918

    Zeshan
    Member

    Hi there,

    You can try adding following CSS code under Custom > CSS in the Customizer:

    .x-recent-posts .x-recent-posts-img {
       background-size: contain;
       padding-bottom: 33.333333333%;
    }
    

    Thanks!

    #305137

    moebis
    Participant

    that worked. Thank you so much!

    #305525

    Rue Nel
    Moderator

    You are most welcome!