Limit Posts To The Specific Category with the Title | Styling The Post Titles

Hello World! Today Innovative is here to add some function to post and make them like tender to shuffle between posts and limit posts to the Specific category with the title.

WordPress Functions  used:

# get_adjacent_post
# get_permalink
# get_the_category();
# $prev_post
# $next_post
# my_custom_post_navigation

Steps to limit posts to the Specific Category with the title:

1. Go to your theme single.php [Some theme have template parts so try to find the exact location]
in my case I was working with Flatsome WordPress Theme, So it’s directory is {Public_html/wp-content/themes/template-parts/posts/content-single.php}.

2. Copy Paste the below code to content-single.php.

< div class="post-limited-navigations">
	ID; // Get current post ID
$cat = get_the_category(); 
$current_cat_id = $cat[0]->cat_ID; // Get current Category ID 

$args = array('category'=>$current_cat_id,'orderby'=>'post_date','order'=> 'DESC');
$posts = get_posts($args);
// Get IDs of posts retrieved by get_posts function
$ids = array();
foreach ($posts as $thepost) {
    $ids[] = $thepost->ID;
// Get and Echo the Previous and Next post link within same Category
$index = array_search($post->ID, $ids);
$prev_post = $ids[$index-1];
$next_post = $ids[$index+1];

ID) . '" title="' . $prev_post->post_title . '">Previous: ' . $prev_post->post_title . ''; } ?>

ID) . '" title="' . $next_post->post_title . '">Next: ' . $next_post->post_title . ''; } ?>
< /div>

3. Call the code in function.php of theme

 * Return only the first category when outputting the previous/next post links
function my_custom_post_navigation($terms, $object_ids, $taxonomies, $args){
    return array_slice($terms, 0, 1);

4. Add the style to [Apearance>Customize> Additional Css>]

.post-limited-navigations a {
    width: 50%;
    background: whitesmoke;
    text-align: center;
    border-right: 1px solid #000;
    border-left: 1px solid #000;
    padding: 20px 0px;
    font-size: 18px;
    font-weight: bold;


That’s it!

Hope you have liked the simple tutorial, Don’t forget to comment and share your information in the comment box. I will try my best to give response asap.

Wish you Best of luck!


Changing Your Email Destination with cPanel Shared Hosting

cPanel offers email service that’s hosted locally on your cPanel account itself. However, if you want to use another email service, we offer a simple tool to help you route your email elsewhere using your domain name’s MX records, which control the server which receives email sent to your domain.

Using this tool, you’ll add MX records from your email provider, let them propagate across the Internet, and then remove the existing MX records. During the propagation time, email could be delivered to either your cPanel shared hosting account or your email provider.

Note: Before changing your mail destination (i.e. your domain name's MX records), we recommend setting up your email address on the new service and making sure you have the MX records you need to use.

To Change Your cPanel’s Email Destination

  1. Log in to your GoDaddy account.
  2. Click Web Hosting.
  3. Next to the account you want to use, click Manage.
  4. In the Email section, click MX Entry.
  5. From the Domain menu, select the domain name whose email destination you want to change.
  6. In the Add New Record section, enter the information from your email provider, and then click Add New Record.
 Note: To prevent possible issues with your email service, we recommend starting with Priority 10 instead of 0 for the MX records you add.

At this point, we recommend waiting up to 48 hours for the changes to your domain name’s email settings to propagate across the Internet. However, if your email isn’t currently working or you don’t mind downtime, you can proceed.

Finalize Your Changes

  1. Go to the MX Entry page.
  2. In the Email Routing section, select Remote Mail Exchanger, and then click Change.
  3. In the MX Records section, next to the Priority 0 MX record with the Destination that is your domain name, click Remove.
  4. Click Delete.

While this change propagates, email sent to your domain name might still get delivered to the email address on your cPanel shared hosting account.

Revolution slider fatal error on activation

but when it comes to errors and you are on nulled plugin or don’t have knowledge how to fix the errors while activating the plugin. I have experimented the following steps hope it will help you guys in future 🙂

Error 1 – Revolution slider fatal error on activation



Fatal error: Uncaught Error: [] operator not supported for strings in /home/lazatrey/public_html/wp-content/plugins/revslider/includes/framework/base-admin.class.php:71 Stack trace: #0 /home/lazatrey/public_html/wp-content/plugins/revslider/admin/revslider-admin.class.php(572): RevSliderBaseAdmin::addMetaBox('Revolution Slid...', '', Array, NULL) #1 /home/lazatrey/public_html/wp-content/plugins/revslider/admin/revslider-admin.class.php(73): RevSliderAdmin->addSliderMetaBox() #2 /home/lazatrey/public_html/wp-content/plugins/revslider/admin/revslider-admin.class.php(44): RevSliderAdmin->init() #3 /home/lazatrey/public_html/wp-content/plugins/revslider/revslider.php(164): RevSliderAdmin->__construct('/home/lazatrey/...') #4 /home/lazatrey/public_html/wp-admin/includes/plugin.php(1882): include('/home/lazatrey/...') #5 /home/lazatrey/public_html/wp-admin/plugins.php(164): plugin_sandbox_scrape('revslider/revsl...') #6 {main} thrown in /home/lazatrey/public_html/wp-content/plugins/revslider/includes/framework/base-admin.class.php on line 71

How to Fix Fatal Error Occur during activation revolution slider ?

it’s Simple

Step 1 – Go to your cpanel/hosting

Step 2 – Go to php selecter Tool

Step 3 – Change Php Version to 5.6 instead of 7.1

That’s it we are done! 🙂