Title: Dodgeling's Replies | WordPress.org

---

# Dodgeling

  [  ](https://wordpress.org/support/users/dodgeling/)

 *   [Profile](https://wordpress.org/support/users/dodgeling/)
 *   [Topics Started](https://wordpress.org/support/users/dodgeling/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dodgeling/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dodgeling/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dodgeling/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dodgeling/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dodgeling/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post By Email] Hide attachment thumbs](https://wordpress.org/support/topic/hide-attachment-thumbs/)
 *  Thread Starter [Dodgeling](https://wordpress.org/support/users/dodgeling/)
 * (@dodgeling)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/hide-attachment-thumbs/#post-4535000)
 * Sorted. As I don’t need to use gallery thumbs anywhere, In the gallery prefs 
   I made the thumbs 0 * 0 in size. They’ve gone now. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PageNavi] Plugin is basically useless to non programmers!](https://wordpress.org/support/topic/plugin-is-basically-useless-to-non-programmers/)
 *  [Dodgeling](https://wordpress.org/support/users/dodgeling/)
 * (@dodgeling)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-is-basically-useless-to-non-programmers/#post-3899434)
 * Hi sficht, thanks for trying to help. I’ve managed to find the below code tucked
   away in an ‘includes’ folder. It’s the only php file in the theme that bears 
   any similarities to the mentioned code I need to replace.
    I’ve tried replacing
   all or part with the necessary code needed but with no luck. Very frustrating.
   If you can spot where it needs to go, I’d be very grateful. Thanks again for 
   your time and help. Dodgeling
 * function wp_pagenavi($before = ”, $after = ”, $prelabel = ”, $nxtlabel = ”, $
   pages_to_show = 5, $always_show = false) {
    global $request, $posts_per_page,
   $wpdb, $paged; if(empty($prelabel)) { $prelabel = ‘**«**‘; } if(empty($nxtlabel)){
   $nxtlabel = ‘**»**‘; } $half_pages_to_show = round($pages_to_show/2); if (!is_single()){
   if(!is_category()) { preg_match(‘#FROM\s(.*)\sORDER BY#siU’, $request, $matches);}
   else { preg_match(‘#FROM\s(.*)\sGROUP BY#siU’, $request, $matches); } $fromwhere
   = $matches[1]; $numposts = $wpdb->get_var(“SELECT COUNT(DISTINCT ID) FROM $fromwhere”);
   $max_page = ceil($numposts /$posts_per_page); if(empty($paged)) { $paged = 1;}
   if($max_page > 1 || $always_show) { echo “$before <div class=’Nav’>”; if ($paged
   >= ($pages_to_show-1)) { echo ‘[« First](https://wordpress.org/support/users/dodgeling/replies/&apos;.get_pagenum_link().&apos;?output_format=md)‘;}
   previous_posts_link($prelabel); for($i = $paged – $half_pages_to_show; $i <= 
   $paged + $half_pages_to_show; $i++) { if ($i >= 1 && $i <= $max_page) { if($i
   == $paged) { echo “<strong class=’on’>$i”; } else { echo ‘ [‘.$i.’](https://wordpress.org/support/users/dodgeling/replies/&apos;.get_pagenum_link($i).&apos;?output_format=md)‘;}}}
   next_posts_link($nxtlabel, $max_page); if (($paged+$half_pages_to_show) < ($max_page)){
   echo ‘[Last »](https://wordpress.org/support/users/dodgeling/replies/&apos;.get_pagenum_link($max_page).&apos;?output_format=md)‘;}
   echo “</div> $after”; } } }
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PageNavi] Plugin is basically useless to non programmers!](https://wordpress.org/support/topic/plugin-is-basically-useless-to-non-programmers/)
 *  [Dodgeling](https://wordpress.org/support/users/dodgeling/)
 * (@dodgeling)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-is-basically-useless-to-non-programmers/#post-3899432)
 * No don’t close it yet. I know exactly what Barry feels like. I’ve just spent 
   an hour going through all my php files trying to find these line
    <div class=”
   nav-previous”><?php next_posts_link( __( ‘<span class=”meta-nav”>←</span> Older
   posts’, ‘twentyten’ ) ); ?></div> <div class=”nav-next”><?php previous_posts_link(
   __( ‘Newer posts <span class=”meta-nav”>→</span>’, ‘twentyten’ ) ); ?></div>
 * and I can not.
    I’m not stupid but without some kind of help other than what’s
   given in locating where to place the required codes, it’s so frustrating. yes,
   I found where to replace them in the twenty 12 theme, but that’s not the theme
   I’m using. Those lines are not in my function.php file of my theme, or any other
   file. So a little explanation as where to place the new codes would have been
   helpful to the likes of Barry, me and many others not as lucky as sfich. It looks
   a good plugin, but I’ll hold judgement until I can get it to work. Ok sficht,
   here the support question you think we should be asking which I think we shouldn’t
   have to ask. Maybe you can answer it. Where do you put the codes when they are
   not in any of your php files? Dodgeling

Viewing 3 replies - 1 through 3 (of 3 total)