Tagged: x
-
AuthorPosts
-
November 22, 2016 at 9:49 am #1266936
Karl KParticipantI was wondering if there was a way to automatically add related posts to the bottom of a post and have those posts match the post category?
I am currently using the code below with essential grid to show recent posts, which is working great.
function single_post_r_shortcode($contents) { if(is_singular()) $contents .= do_shortcode('<h3>More From Guys Drinking Beer</h3>[ess_grid alias="recent"]'); return $contents; }Is there anything I could add to recreate this code to have the most recent “Beer News” posts at the bottom of a post in the “Beer News” category?
And, for what it’s worth, I’m not married to using the essential grid shortcode if that complicates things.
Thanks in advance,
Karl
November 22, 2016 at 10:58 am #1267038
RupokMemberHi Karl,
You need to use a plugin to achieve this. Let’s try finding an appropriate one that suits you best as it’s not a theme feature to add related posts.
Thanks!
December 1, 2016 at 3:14 pm #1277920
Karl KParticipantThought it would be worth a try to ask. Thanks for the response.
December 1, 2016 at 6:27 pm #1278088
FriechModeratorShould you require any further assistance with X|THEME and Cornerstone, please feel free to get in touch with us.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1266936 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
