• love the plugin, just installed on a new blog using some random theme, at the bottom of the homepage is a ‘previous entries’ link to the next page and i’m not sure if this is controlled by the theme? or is it a setting in wordpress? i’ve been through the entire theme and can’t find this link it’s driving me nuts!

    thanks for any help!

    https://www.ads-software.com/extend/plugins/wp-pagenavi/

Viewing 5 replies - 1 through 5 (of 5 total)
  • a link to your site?

    name of the random theme?

    normally, what you are looking for, is in index.php of the theme.

    something like: previous_posts_link and next_posts_link or posts_nav_link.

    themes, that are prepared for the plugin, may have some code similar to this:

    <?php if(function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
    <div class="pagenav"><?php posts_nav_link(' — ', __('&laquo; Previous Page of Articles'), __('Next Page of Articles &raquo;')); ?></div>
    <?php } ?>

    Thread Starter dlawton

    (@dlawton)

    @alchymyth thanks for the response

    The site is at sidewalkhustle.com and the theme is called redoable1.2
    I cannot for the life of me find any reference in the theme to the previous entries link. I’m very confused! I must be overlooking something, hmmm

    it is in ‘navigation.php’

    you probably need to edit this bit:

    <?php } else { ?>
    
    	<?php /* global $pagenow; echo $pagenow; */ $redo_asidescategory = get_option('redo_asidescategory');?>
    
    	<div class="navigation <?php if ( is_home() and $redo_asidescategory != 0 ) { echo 'rightmargin'; } ?>">
    	<?php $_SERVER['REQUEST_URI']  = preg_replace("/(.*?).php(.*?)&(.*?)&(.*?)&_=/","$2$3",$_SERVER['REQUEST_URI']); ?>
    		<div class="left"><?php next_posts_link('<span>&laquo;</span> '.__('Previous Entries','redo_domain').''); ?></div>
    		<div class="right"><?php previous_posts_link(''.__('Next Entries','redo_domain').' <span>&raquo;</span>'); ?></div>
    		<div class="clear"></div>
    	</div>
    
    	<?php } ?>

    and include the link to your plugin:

    <?php } else { ?>
    
    	<?php /* global $pagenow; echo $pagenow; */ $redo_asidescategory = get_option('redo_asidescategory');?>
    
    	<div class="navigation <?php if ( is_home() and $redo_asidescategory != 0 ) { echo 'rightmargin'; } ?>">
    	<?php $_SERVER['REQUEST_URI']  = preg_replace("/(.*?).php(.*?)&(.*?)&(.*?)&_=/","$2$3",$_SERVER['REQUEST_URI']); ?>
    
    <?php if(function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
    
    		<div class="left"><?php next_posts_link('<span>&laquo;</span> '.__('Previous Entries','redo_domain').''); ?></div>
    		<div class="right"><?php previous_posts_link(''.__('Next Entries','redo_domain').' <span>&raquo;</span>'); ?></div>
    
    <?php endif; ?>
    		<div class="clear"></div>
    	</div>
    
    	<?php } ?>

    hope you can figure out what to change where, and hope this works, good luck ??

    Thread Starter dlawton

    (@dlawton)

    I looked in that file, here’s the entire file, I didn’t see anything related! So confused!

    <?php
    
    function nav_sidebar_module($args) {
    	global $notfound, $post, $wpdb;
    
    	extract($args);
    
    	if(is_page() and ($notfound != '1')) {
    		$current_page = $post->ID;
    
    		while($current_page) {
    			$page_query = $wpdb->get_row("SELECT ID, post_title, post_status, post_parent FROM $wpdb->posts WHERE ID = '$current_page'");
    			$current_page = $page_query->post_parent;
    		}
    
    		$parent_id = $page_query->ID;
    		$parent_title = $page_query->post_title;
    
    		if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' AND post_status != 'attachment'")) {
    			echo($before_module);
    			?>
    				<h2><?php echo $parent_title; ?> <?php _e('Subpages','redo_domain'); ?></h2>
    
    				<ul>
    					<?php wp_list_pages('sort_column=menu_order&title_li=&child_of='. $parent_id); ?>
    				</ul>
    
    				<?php if ($parent_id != $post->ID) { ?>
    					<a href="<?php echo get_permalink($parent_id); ?>"><?php printf(__('Back to %s','redo_domain'), $parent_title ) ?></a>
    				<?php } ?>
    			<?php
    			echo($after_module);
    			?>
    				<div class="sb-spacer"></div>
    			<?php
    		}
    	}
    
    	if(is_attachment()) {
    	?>
    		<div class="sb-pagemenu">
    			<a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php printf(__('Back to \'%s\'','redo_domain'), get_the_title($post->post_parent) ) ?></a>
    		</div>
    	<?php
    	}
    }
    
    register_sidebar_module('Navigation module', 'nav_sidebar_module', 'sb-pagemenu');
    
    ?>

    in the version redo1.2 everything points to navigation.php as the file where to enter the wp-pagenave; however, you may have a different version of that theme.
    not much more that i can do.

    good thing is, your theme is functional without pagenavi;
    and there is a limited amount of theme files, just keep searching for ‘next_posts_link’ and then enter the plugin pagenavi there.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WP-PageNavi] get rid of default navigation?’ is closed to new replies.