This page supports the article called "Create a Related Reading List with WordPress Shortcode" on this page. It shows three rows of four related posts. Shortcode would normally be used is [relatedposts cards="12" number="4" fontsize="1.2"]. Our example code is actually written as follows: [relatedposts cards="12" number="4" tags="wordpress" fontsize="1.2" height="160"]
Note: This code is well and truly deprecated, and the result will no longer format correctly. Find other more up-to-date examples on our website.
In our second example we'll create one row of four cards with a background color of #DBDBDB. Shortcode used is [relatedposts cards="4" number="4" tags="wordpress" fontsize="0.9" height="160" color="#DBDBDB"].
An image was used because of our dodgy use of inline CSS. In reality you would copy the appropriate styles to your custom functions file.