Topic: IE7 breaks image (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: |
posted 03-25-2008 23:39
This page |
Paranoid (IV) Inmate From: f(x) |
posted 03-26-2008 02:08 |
Paranoid (IV) Inmate From: |
posted 03-26-2008 04:09
quote:
code: <li><?php next_posts_link('Previous') ?></a></li> <li><?php previous_posts_link('Next') ?></a></li>
|
Paranoid (IV) Inmate From: f(x) |
posted 03-26-2008 08:09
Here's what you need to do: code: function next_post_link ($which_one) { if ($links[$which_one]){ echo '<a href="'.$links[$which_one].'">'; } }
code: echo '<li><a href="'.$links[$which_one].'"></a></li>';
code: <?php next_posts_link('Previous') ?> <?php previous_posts_link('Next') ?>
|
Paranoid (IV) Inmate From: |
posted 03-26-2008 23:54
Hey Zava code: <li><?php next_posts_link('Previous') ?></li> <li><?php previous_posts_link('Next') ?></li>
code: <li><a href="http://www.sleepingwolves.com/blog/?cat=20&paged=2">Previous</a></li> <li></li> </ul>
|
Paranoid (IV) Inmate From: f(x) |
posted 03-27-2008 05:23 |
Bipolar (III) Inmate From: Minnesota |
posted 03-27-2008 21:15
The code for those functions is in the link-template.php file in the wp-includes directory. code: function next_post_link($format='%link »', $link='%title', $in_same_cat = false, $excluded_categories = '') { $post = get_next_post($in_same_cat, $excluded_categories); if ( !$post ) return; $title = $post->post_title; if ( empty($post->post_title) ) $title = __('Next Post'); $title = apply_filters('the_title', $title, $post); $string = '<a href="'.get_permalink($post->ID).'">'; $link = str_replace('%title', $title, $link); $link = $string . $link . '</a>'; $format = str_replace('%link', $link, $format); echo $format; }
code: function next_post_link($format='%link »', $link='%title', $in_same_cat = false, $excluded_categories = '',$wraptag='') { $post = get_next_post($in_same_cat, $excluded_categories); if ( !$post ) return; $title = $post->post_title; if ( empty($post->post_title) ) $title = __('Next Post'); $title = apply_filters('the_title', $title, $post); $string = '<a href="'.get_permalink($post->ID).'">'; $link = str_replace('%title', $title, $link); $link = $string . $link . '</a>'; $format = str_replace('%link', $link, $format); if($wraptag != '') { $format = "<$wraptag>$format</$wraptag>"; } echo $format; }
code: <li><?php next_post_link('Previous') ?></li>
code: <?php next_post_link('%link','Previous',true,'','li') ?>
|
Paranoid (IV) Inmate From: |
posted 03-27-2008 23:49
Thanks Nathus |
Paranoid (IV) Inmate From: |
posted 03-27-2008 23:56
Looked at the code..not using the same version of WP as you. |
Bipolar (III) Inmate From: Minnesota |
posted 03-28-2008 19:33
Oops, I updated the wrong function. I thought you were using next_post_link which is used on single pages to link to the next article. code: function next_posts_link($label='Next Page »', $max_page=0, $wraptag='') { global $paged, $wpdb, $wp_query; if ( !$max_page ) { $max_page = $wp_query->max_num_pages; } if ( !$paged ) $paged = 1; $nextpage = intval($paged) + 1; if ( (! is_single()) && (empty($paged) || $nextpage <= $max_page) ) { if($wraptag != '') { echo "<$wraptag>"; } echo '<a href="'; next_posts($max_page); echo '">'. preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .'</a>'; if($wraptag != '') { echo "</$wraptag>"; } } }
code: <?php next_posts_function('Previous',0,'li'); ?>
|
Paranoid (IV) Inmate From: |
posted 03-28-2008 23:07
Thanks Nathus..very much appreciated. |