How to Display Your Most Recent Posts, Most Popular Posts and Recommended Posts in WordPress

This three-part tutorial will teach you how to display your Most Recent Posts, Most Popular Posts, and Recommended Posts in your WordPress-powered website. Part 1 – How to Display Your Most Recent Posts Add the following lines of code where you want to display your most recent posts: <h2 class=”widget-title”>Most Recent Posts</h2> <ol> <?php $theme_recent_posts = new WP_Query(); $theme_recent_posts->query(‘showposts=5’); while ($theme_recent_posts->have_posts()) : $theme_recent_posts->the_post(); ?> <li> <a href=”<?php esc_url(the_permalink()); ?>”><?php esc_html(the_title());… Read More

How to Install WordPress on Ubuntu 18.04 Step By Step

The use of Content Management System (CMS) has drastically changed the way content is published on the internet and allowed for the mushrooming of a lot of websites. Websites built with WordPress (a CMS) account for the majority of websites online that run using CMS. Because the history of WordPress is rooted on blogging, it makes content publishing relatively easy and straightforward. By installing WordPress with LAMP (Linux, Apache, MySQL,… Read More

How to Move the Ubuntu Dock to the Bottom or Right in Ubuntu 18.04

The Ubuntu Dock is the bar on your Ubuntu desktop that has the shortcut icons for the software installed on your computer. By default, it is on the left of your screen, but you can move it to the bottom or to the right. Here are the steps: 1. Click the icon that looks like an arrow pointing down at the top-right corner of your Ubuntu computer. 2. A small… Read More

How to Create a Shortcut File Launcher in Ubuntu 18.04

(Editor’s Note: We are not responsible over any form of content available on other websites. Download their content or software at your own risk.) Oftentimes you want to install some specific software on your Ubuntu machine but the software’s creator only provides a compressed file (e.g. .zip, .txz, .tar.gz, etc.) and not an installable file. What some Ubuntu users do in this situation is copy the compressed file into a… Read More

How to Install Kindle For PC on Ubuntu 18.04

(Editor’s Note: We are not responsible over any form of content available on other websites. Download their content or software at your own risk.) When you buy ebooks from Amazon, you have the options of reading them using Amazon Kindle E-Readers, the Kindle Cloud Reader (a website), and the free Kindle app available on iOS, Android, Mac, and PC. But what if you’re a Linux user? Sorry, the app is… Read More

How to Install Wine on Ubuntu 18.04

(Editor’s Note: We are not responsible over any form of content available on other websites. Download their content or software at your own risk.) When you first switch from Windows to Ubuntu, you find that there are software that you cannot install on your new operating system. The good news is, there is a piece of software that can help you do just that. It is called Wine. Installing Wine… Read More

How to Display Your Recommended Posts in WordPress

The enumerated steps below will display a list of your Recommended Posts with thumbnail images in the sidebar of your WordPress-powered website. The list will be consist of five titles right next to their corresponding images. This tutorial uses a WordPress category to display the list. If after reading this article you want a different method of doing the same thing, you may read the article How to Display Your… Read More

How to Display Your Featured Posts in WordPress

This tutorial will display a list of your Featured Posts with thumbnail images in the sidebar of your WordPress-powered website. The list will be consist of five titles right next to their corresponding images. Furthermore, this will create a checkbox under each of your posts in the WordPress dashboard. If after reading this article you want a different method of doing the same thing, you may read the article How… Read More

How to Truncate and Add ‘Read More’ to Your WordPress Excerpt

Add any of the following codes into the functions.php file: Code 1 – Read More // Truncate and add ‘Read More’ to the excerpts // Truncate excerpt function custom_excerpt_length( $length ) { return 70; // Number of words } add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 ); // Add a “Read More” link to the end of an excerpt function wpdocs_excerpt_more( $more ) { return ‘… <a href=”‘.get_the_permalink().'” class=”readmore”>Read More</a>’; } add_filter( ‘excerpt_more’,… Read More

How to Display Your Most Popular Posts in WordPress

The following steps will display a list of your Most Popular Posts with thumbnail images in the sidebar of your WordPress-powered website. The list will be consist of five titles right next to their corresponding images. 1. Add the following codes into the functions.php file: // Set image sizes add_theme_support(‘post-thumbnails’); if ( function_exists( ‘add_theme_support’ ) ) { add_theme_support( ‘post-thumbnails’ ); set_post_thumbnail_size( 50, 50, array( ‘center’, ‘center’) ); add_image_size( ‘excerpt-image’, 60,… Read More