Blog / related posts

Is there settings somewhere how i can show newest posts beside the post ?

Hi Jimi,

Thanks for writing in!

Can you please clarify what exactly you want to achieve here. There is a confusion in your question as the post always retrieve the latest/newest post.

Please let us know with a screenshot if possible so that we can suggest you better.

Thanks

I have news section in my frontpage , tere if i klick some of my news and open " the post " i see the post just as i want but, how can i make somewhere in the post page my other news thumbnails , kind of suggesting other posts to ppl who read the news? Im new on blogging but our comppany will start to make news all the time so we need kinda of blog :wink:

Hey Jimi,

You can do this with custom development, because this requires a template change, I’d advise that you setup a child theme (https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57). This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.(https://theme.co/apex/forum/t/customizations-best-practices/205)

After setting up the child theme, please add the following code in your child theme’s functions.php file:

function x_add_latest_posts() {
		if ( is_single() ) {
			echo "<h5>Latest Posts</h5><hr>";
  			echo do_shortcode('[recent_posts count="4"]');
		}
}
add_action('x_before_the_content_end', 'x_add_latest_posts');

This will add a section to your single post which will display your latest posts. You can make adjustments to the recent_posts shortcode by reviewing the guide here http://demo.theme.co/integrity-1/shortcodes/recent-posts/

Hope this helps!

OOh boy :slight_smile: i may try but have to ask that is this the only option to do this? Are there any plugin or some that i could do this? since it is only for single post where i need kinda sidebar? sounds big hzzle for only edit a single post page. Im making news page any ways but it doesnt work since if some one opens a post there the post doesnt show any link back to news sections or other posts.

Hi There,

You can aslo try with this plugin:

Hope that helps and thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.