-
AuthorPosts
-
June 12, 2015 at 10:36 am #300090
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.
June 12, 2015 at 11:58 pm #300542Hello 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-298809Thank you.
June 13, 2015 at 3:20 am #300659This reply has been marked as private.June 13, 2015 at 5:42 am #300726or 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.
June 13, 2015 at 8:23 pm #301042Hello 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.
June 16, 2015 at 2:49 am #303166Thank 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.
June 16, 2015 at 7:44 am #303419Hi,
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.
June 17, 2015 at 4:18 am #304503This reply has been marked as private.June 17, 2015 at 10:59 am #304918Hi 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!
June 17, 2015 at 2:11 pm #305137that worked. Thank you so much!
June 17, 2015 at 8:50 pm #305525You are most welcome!
-
AuthorPosts