July 2010
M T W T F S S
« Dec «-»  
 1234
567891011
12131415161718
19202122232425
262728293031  

WordPress calling SEO Pager Enhanced Pagination

VN:F [1.4.6_730]
Rating: 0.0/5 (0 votes cast)

WordPress provides good navigation links to our content, but at Dicelock Security Blog we wanted our viewers to be able to browse our blog in a way that they could arrive to all the information we provide.
We found that the format “Previous”, “Next” options could be expanded, and we did it through the SEO Pager plugin …

  Applies to:

WordPress 2.8
Atahualpa 3.2 and other themes
SEO Pager

These customizations are provided “AS IS” without warranty of any kind and DiceLock Security disclaims all warranties, EITHER EXPRESS OR IMPLIED INCLUDING THOSE OF MERCHANTABILITY, NONINFRINGEMENT OF THIRD-PARTY INTELLECTUAL PROPERTY, OR FITNESS FOR A PARTICULAR PURPOSE.

Upgrading or reinstalling the customized source code (package, plugin, component, …) may remove the customizations performed.

 

SEO Pager is s plugin that allows to make sure that if a viewer goes to a category page, it can reach all underlying pages without any trouble as Search Engine do. Otherwise, if we have a lot of posts in a category, the viewer might have to go back 10 pages before being able to find the link to one of our earlier posts.

And an important point is that it allows for easy indexing because the bots can access more pages from the page they are indexing.

At Atahualpa theme we found that the better place was under Next/Previous PAGE Links that is located in the file index.php of atahualpa folder.

file: index.php
lines: 280 – 308 (about)

	<?php			
	// Next/Previous PAGE Links (on multi post pages) 
	// in next_posts_link "next" means older 
	if ( !is_single() AND !is_page() AND strpos($bfa_ata_location_multi_next_prev,'Bottom')!==false AND show_posts_nav() ) {
		if (function_exists('wp_pagenavi')) { 
			echo '<div class="wp-pagenavi-navigation">'; wp_pagenavi(); echo '</div>'; 
		} else { 
			echo '<div class="navigation-bottom">
			<div class="older' . $nav_home_add . '">'; 
			$bfa_ata_next_prev_orientation == 'Older Left, Newer Right' ? 
			next_posts_link(bfa_escape($bfa_ata_multi_next_prev_older)) : 
			previous_posts_link(bfa_escape($bfa_ata_multi_next_prev_newer)); 
			echo ' &nbsp;</div>' . $nav_home_div . '<div class="newer' . $nav_home_add . '">&nbsp; ';
			$bfa_ata_next_prev_orientation == 'Older Left, Newer Right' ? 
			previous_posts_link(bfa_escape($bfa_ata_multi_next_prev_newer)) : 
			next_posts_link(bfa_escape($bfa_ata_multi_next_prev_older)); 
			echo '</div>
			<div style="clear:both"></div>
			</div>'; 
		} 
		echo '<div align="center">';
		echo '<div class="navigation">';
			if (function_exists('SEO_pager'))
		    		SEO_pager(" "," "," ","« Previous page","Next Page »","strong");
			else
				echo 'Fix Pager';
		echo '</div>';
		echo '</div>';
	} ?>
Note: if you view this code through the machine translator, maybe you are viewing a transformed code. Please, view the original English version of the page to see it unaltered.

The important code to make the call is:

echo '<div align="center">';
echo '<div class="navigation">';
	if (function_exists('SEO_pager'))
    		SEO_pager(" "," "," ","« Previous page","Next Page »","strong");
	else
		echo 'Fix Pager';
echo '</div>';
echo '</div>';
Note: if you view this code through the machine translator, maybe you are viewing a transformed code. Please, view the original English version of the page to see it unaltered.

And what we get is that at the bottom of the page the viewer can found the following links:

- From starting point:

Starting point

- In the middle of:

Middle point

- At the ending point:

Ending point
VN:F [1.4.6_730]
Rating: 0.0/5 (0 votes cast)
  • Share/Save/Bookmark

Related posts:

  1. WordPress – Improve your 404 File Not Found answers (1 of 4)
  2. WordPress – Improve your 404 File Not Found answers (3 of 4)
  3. WordPress – Improve your 404 File Not Found answers (4 of 4)
  4. WordPress – Improve your 404 File Not Found answers (2 of 4)
  5. WordPress Global Translator – Language Flag Space Out

No Comments

You must be logged in to post a comment.

If you want to subscribe to the comments of this information without commenting, enter your email.





Close Me  
Get FREE Random Number Test Windows DLL !
Get FREE Hash Algorithms Windows DLL !