We have been using plugins to display random posts on our sidebar. As all may have known, avoiding the use of plugins may decrease the loading speed of any wordpress website. We have started using these very simple line of codes just to make that happen. So how do we display random posts in WordPress sidebar without any plugins?
Just simply open you sidebar.php or on any file (eg:tab.php etc) where you need it to appear on sidebar and paste these codes.
- - Advertisement -