fbpx

How To Add Pagination To WordPress without plugin

Pagination is actually baked right into WordPress. To set everything up, you’ll need to visit the WordPress admin first. From there, you can visit Settings -> Reading. This is where you can set up the basic formatting of your posts. The “Front page displays” option, for instance, can either be set as Your latest posts(the default) or as a static page and a posts page. In both cases, pagination will be required on the page that lists out your posts.

BasicNavigation

Add on functions.php

function pagination_nav() {
    global $wp_query;
 
    if ( $wp_query->max_num_pages > 1 ) { ?>
        <nav class="pagination" role="navigation">
            <div class="nav-previous"><?php next_posts_link( '&larr; Older posts' ); ?></div>
            <div class="nav-next"><?php previous_posts_link( 'Newer posts &rarr;' ); ?></div>
        </nav>
<?php }
}


Add on default Loop:

<?php pagination_nav(); ?>

Our SEO Strategy

 

  1. Full website audit – Jov
  2. Track the rank of the website – Jov
  3. Keywords research – Jov
  4. Provide suggestions to client based on the researched keywords. – Jov
  5. Fill up this form – https://goo.gl/g4H0o3 (“Info Sheet” tab) – Jov
  6. Technical website optimization – Backend
  7. Off-site optimization – SP3
  8. Do all the tasks on the “SEO Process” tab on the sheet https://goo.gl/kYW5kF. – Jov, Backend, SP3
  9. Spy on your competitors – Jov
  10. Generate quality backlinks – Jov
  11. Send Monthly SEO progress report to client – Jov

 

How To Optimize A Page Using Moz.com

Simply follow these steps:

  1. Login to Moz.com – https://moz.com/login
  2. On main menu, click Moz Pro > Moz Pro Home
  3. Click on the name of the campaign that you want to work on.
  4. On the Sidebar, click on Page Optimization link the keyword and URL of the page you want to optimize.

optimize

  1. Fix as many issues as possible. All issues that you cannot fix, please put in a dedicated spreadsheet.

Advance Template Integration of Sensei Plugin on DIVI theme

The code in below will integrate Sensei with the Divi theme from Elegant Themes. Add the code below into your themes functions.php file.

/**
 * Declare Sensei support
 *
 * This is needed to hide the Sensei theme compatibility notice your admin dashboard.
 */
add_action( 'after_setup_theme', 'divi_sensei_support' );
function divi_sensei_support() {
	add_theme_support( 'sensei' );
}

/**
 * Remove the default Sensei wrappers
 */
global $woothemes_sensei;
remove_action( 'sensei_before_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper' ), 10 );
remove_action( 'sensei_after_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper_end' ), 10 );

/**
 * Add Divi specific custom  Sensei content  wrappers
 */
add_action('sensei_before_main_content', 'divi_sensei_wrapper_start', 10);
add_action('sensei_after_main_content', 'divi_sensei_wrapper_end', 10);

function divi_sensei_wrapper_start() {
	echo '<div id="main-content">
			<div class="container">
				<div id="content-area" class="clearfix">
					<div id="left-area">';
		//<div id="content-area" class="clearfix">'
	//echo '<div id="primary" class="content-area"><main id="main" class="site-main" role="main">';
}

function divi_sensei_wrapper_end() {
	echo '			</div> <!-- #left-area -->';
	get_sidebar();
	echo '     </div> <!-- #content-area -->
			</div> <!-- div.container -->
        </div><!-- #main-content -->';
}