# Related posts picked by hand

> Pick related posts by hand and print them under the article.

Source: https://uglydev.com/recipes/related-posts-picked-by-hand/
Updated: 19 November 2026

```php
<?php $related = ugly_get( 'related' ); ?>
<?php if ( $related ) : ?>
	<aside class="related">
		<h2>Keep reading</h2>
		<ul>
			<?php foreach ( $related as $post ) : ?>
				<li><a href="<?php echo esc_url( get_permalink( $post ) ); ?>"><?php echo esc_html( get_the_title( $post ) ); ?></a></li>
			<?php endforeach; ?>
		</ul>
	</aside>
<?php endif; ?>
```
