Changeset 2478 for trunk/wp-includes/template-functions-general.php
- Timestamp:
- 03/27/2005 08:45:01 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-general.php
r2344 r2478 194 194 $p = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = '$name'"); 195 195 } 196 $post _data = get_postdata($p);197 $title = $post _data['Title'];196 $post = & get_post($p); 197 $title = $post->post_title; 198 198 $title = apply_filters('single_post_title', $title); 199 199 if ($display) { … … 348 348 } 349 349 } elseif ('postbypost' == $type) { 350 $arcresults = $wpdb->get_results("SELECT ID, post_date, post_titleFROM $wpdb->posts WHERE post_date < '$now' AND post_status = 'publish' ORDER BY post_date DESC" . $limit);350 $arcresults = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_date < '$now' AND post_status = 'publish' ORDER BY post_date DESC" . $limit); 351 351 if ($arcresults) { 352 352 foreach ($arcresults as $arcresult) { 353 353 if ($arcresult->post_date != '0000-00-00 00:00:00') { 354 $url = get_permalink($arcresult ->ID);354 $url = get_permalink($arcresult); 355 355 $arc_title = $arcresult->post_title; 356 356 if ($arc_title) {
Note: See TracChangeset
for help on using the changeset viewer.