Adrian Martinez
asked 11 years ago

Hi, how do I show 6 related posts at the end of every post instead of the current 3?

Thanks,

Adrian

2 Answers
DominicStaff
answered 11 years ago

To resolve this problems.

Firstly, you can open the single.php file / line 24

Replace the following code:

 'posts_per_page'=>3,

With new code:

 
'posts_per_page'=>6,

Next, you can log in to dashboard > Theme > Customize > General Settings > add the following code to the “Header Script”

 
<style>
.single .related-post .hentry:nth-child(3n+1) {
clear: left;
margin-left: 0;
}</style>

Regards,
Dominic

Adrian Martinez
replied 11 years ago

Hi Dominic,

Adrian Martinez
replied 11 years ago

That didn’t really work out for me. Here’s a screen grab of how it looked: http://www.adrianlinks.com/wp-content/uploads/2013/09/Screen-Shot-2013-09-10-at-7.19.27-AM.png

DominicStaff
answered 11 years ago

To resolve this problems.

Firstly, you can open the single.php file / line 24

Replace the following code:


'posts_per_page'=>3,

With new code:


'posts_per_page'=>6,

Next, you can log in to dashboard > Theme > Customize > General Settings > add the following code to the “Header Script”


<style>
.single .related-post .hentry:nth-child(3n+1) {
clear: left;
margin-left: 0;
}</style>

Regards,
Dominic

Powered by DW Question & Answer Pro