How to increase WordPress website speed without a plugin

WP Lovers Team

WordPress websites at their core are based on a slick and fast framework, there’s a reason WordPress powers about 35-40% of the internet. With extensive design and functionality options comes the possibility of slow performance.

Studies show that you have around 7 seconds to capture a user’s attention, therefore every second there is a delay in your website loading eats into valuable time which you have to make an impression on.

It’s not only the user experience that is affected, search engines such as Google use load speed as a metric for page ranking. The slower your load speed, the lower the search results from your website will likely appear and ultimately hinder your traffic.

If you haven’t already, we recommend you check out our previous article onhow to speed up your website loading time. This previous article focuses more on plugins to aid website speed, whereas we’re now focusing…

View original post 1,115 more words


How to install Twnety Twenty theme on WordPress Website?

  • For safer side, take backup of your current website.
  • Go to: appearance > Themes > Search “Twenty Twenty” > try “Live Preview” > activate.
  • For theme customisation, go to: : appearance > Themes > Customise > Site Identity > Colors > Theme Options > Cover Template > Background image > Menu > Widgets > Homepage Settings > Additional CSS.
  • After successful installation, click on heart bottom (on top right corner above download button) and subscribe to the theme.
  • Kindly share your feedback by writing theme review and giving rating out of 5.
  • You can write theme review, check support forum, and submit an issue (if any).

How to download PDF file using WordPress codex


/* Template Name: PDF */
// place this code inside a php file and call it f.e. "download.php"
$uploads = wp_upload_dir();
$ppp = explode('/', $uploads[path]);
$path = "/".$ppp[1]."/".$ppp[2]."/".$ppp[3]."/".$ppp[4]."/".$ppp[5]."/".$ppp[6]."/09/";
//$path = $uploads['path']."/"; // change the path to fit your websites document structure
$fullPath = $path.$_GET['download_file'].".pdf";
if ($fd = fopen ($fullPath, "r")) {
    $fsize = filesize($fullPath);
    $path_parts = pathinfo($fullPath);
    $ext = strtolower($path_parts["extension"]);
    switch ($ext) {
        case "pdf":
        header("Content-type: application/pdf"); // add here more headers for diff. extensions
        header("Content-Disposition: attachment; filename=\"".$path_parts["basename"]."\""); // use 'attachment' to force a download
        header("Content-type: application/octet-stream");
        header("Content-Disposition: filename=\"".$path_parts["basename"]."\"");
    header("Content-length: $fsize");
    header("Cache-control: private"); //use this to open files directly
    while(!feof($fd)) {
        $buffer = fread($fd, 2048);
        echo $buffer;
fclose ($fd);
// example: place this kind of link into the document where the file download is offered:
// <a href="download.php?download_file=some_file.pdf">Download here</a>
<a href="pdf?download_fileq=<?php echo $filed_name[0]; ?>" ><img src="<?php bloginfo('template_directory') ?>/images/pdf.jpg" /><span class="pdf">Download the <?php echo $filed_name[0]; ?></span></a>

New Gallery Widget in WordPress 4.9

WordPress 4.8 introduced new media widgets which included rich text, audio, image, and video. WordPress 4.9 builds up on that with the introduction of the new gallery widget.


This new widgets allows you to create a native WordPress gallery and add it to your WordPress sidebar or any widget ready areas.

Just like the native WordPress galleries, this widget is also limited in terms of functionality.

Template Hierarchy


WordPress uses the query string to decide which template or set of templates should be used to display the page. The query string is information that is contained in the link to each part of your website. It comes after the initial question mark and may contain a number of parameters separated by ampersands.

Put simply, WordPress searches down through the template hierarchy until it finds a matching template file. To determine which template file to use, WordPress:

  1. Matches every query string to a query type to decide which page is being requested (for example, a search page, a category page, etc);
  2. Selects the template in the order determined by the template hierarchy;
  3. Looks for template files with specific names in the current theme’s directory and uses the first matching template file as specified by the hierarchy.

With the exception of the basic index.php template file, you can choose whether you want to implement a particular template file or not.

If WordPress cannot find a template file with a matching name, it will skip to the next file in the hierarchy. If WordPress cannot find any matching template file, the theme’s index.php file will be used.

Visual Overview

Custom post list ( Member ) with pagination

Template Name: View All Members 
<?php get_header(); ?>

<?php $big = 999999999;
$args = array(
'post_type' => 'wp_member',
'country' => $country,
'meta_query' => $meta_query,
'posts_per_page' => '8',
'paged' => $paged

$wp_query = new WP_Query( $args );
while ( have_posts() ) : the_post(); 
// Code

<?php echo paginate_links( array('base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),'format' => '?paged=%#%','current' => max( 1, get_query_var('paged') ),'total' => $wp_query->max_num_pages) ); ?>

<?php get_footer(); ?>


Add Post Meta Box In Admin

/*-------------- Called Post Meta -----------------*/
function meta_box_part()
    add_meta_box("meta-box-section", "Section List", "custom_meta_box_markup_section", "your-post-type", "side", "high", null);
add_action("add_meta_boxes", "meta_box_part");

/*-------------- Add Post Meta -----------------*/
function custom_meta_box_markup_section($object)
    // code goes here...

/*-------------- Save Post Meta -----------------*/
function save_custom_meta_box($post_id, $post, $update){
     if (!isset($_POST["meta-box-nonce"]) || !wp_verify_nonce($_POST["meta-box-nonce"], basename(__FILE__)))
        return $post_id;

     if(!current_user_can("edit_post", $post_id))
        return $post_id;

     if(defined("DOING_AUTOSAVE") && DOING_AUTOSAVE)
        return $post_id;

     $meta_box_value = "";
	$meta_box_value = $_POST["custom_input"];
     }  else{
	$meta_box_value = '';
     update_post_meta($post_id, "custom_meta_name", $meta_box_value);
add_action("save_post", "save_custom_meta_box", 10, 3);


Best enjoyed with family and friends. Spread the New Year spirit and share the joy and happiness. Hope this New Year brings to you a magical touch of various treats and pampers you with several surprise presents. Enjoy and don’t miss this opportunity of sending warm wishes to your near and dear ones. Happy New Year 2015 to everyone out there and cheers! Friends if are searching for Funny 2015 Happy New Year


Merry Christmas



The month of Christmas has already come. People are counting on weeks, days, hours, minutes, and seconds to the day of Christmas Eve. Christmas is a season of giving where the people come out and give their heartful to the poor. It is the day to forgive. It is the day to forget all the sore things and start a new life with new hopes and wishes. Christmas is about keeping Jesus in the heart for the entire year and doing good deeds all the time. On the day of Christmas with the bells ringing and people singing it would be a delight to watch. People come together in Joyce and praise the lord for the beautiful life he presented us with. With loads of love towards Jesus people come and deliver their lovable prayers to him.