Display Related Post In Carrington Mobile Theme Without Plugin

Quickly use below guide to display related post in carrington mobile theme without plugin.

If you have noticed I have been providing tutorials on how to edit Carrington Mobile  Theme the popular framework Naijaloaded Mobile theme is built with. Today on this guide I am going to show you how you can quickly edit carrington mobile theme to display related post inside the post content.

Follow the steps below to display related post in carrington mobile theme

1. Go through your wordpress dashboard and on appearance choose theme editor.
2. Select Carrington mobile theme as the theme you want to edit.
3. In this directory open the single.php file.
4. Search using CTRL + F for “cfct_content();” without the quotes and in the line after the code paste the below code.
//for use in the loop, list 5 post titles related to first tag on current post
$tags = wp_get_post_tags($post->ID);
if ($tags) {
echo 'Related Posts';
$first_tag = $tags[0]->term_id;
'tag__in' => array($first_tag),
'post__not_in' => array($post->ID),
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>

5. Click on Save  and you are done.
Final Note: Hope you have seen how quickly you were able to achieve this. The reason is because I have simplified the process so that anyone that wants to customize carrington mobile theme will find it easy while going through this post. For now lets call it a day.

🎵 Want to post your Songs? Contact me HERE

Leave a comment

Top music

Tophits.ng – Naija Free MP3 UPLOAD AND downLoads

TopHits is a digital music, podcast, and video streaming service that gives you access to millions of songs, Gossips and other content from artists all over the world. Basic functions such as playing music are totally free, but you can also choose to upgrade to Premium.
We are #1 Nigerian latest music streaming at the moment.  There are no premium accounts for artists, and free accounts include unlimited storage, whether you have one song or one thousand.

How to upload a track on tophits.ng

To upload your music on tophits.ng please follow below guides. 

  1. Log in or create a free account on Tophits
  2. After you have created the account on tophits message the admin on WhatsApp  for your account to be upgraded (Your account must be upgraded before you can post a song.)
  3. After your account has been upgraded log in
  4. Click on Upload located closely to your profile picture on menu bar.
  5. Enter your song details(eg. Title, song description, cover or artwork, stream or your mp3, artist name, genre, etc.)
  6. Click submit(Once you are done click on submit and wait for admin approval)

NB: To make admin approval of your song faster on tophits please send direct message notifying him of your new pending track.