help permalinks
-
Sorry for the English,
then I put the permalinks some images no longer appear when I look at the way was thus:Correct: …/wordpress3/wp-content/themes/mytheme/images/post_not_imagem.jpg
The error with permalinks: …/wordpress3/category/highlights/wp-content/themes/mytheme/images/post_not_imagem.jpg
I’m using this function to display the images:
function the_thumb($size = "medium", $add = ""){ global $wpdb, $post; $thumb = $wpdb->get_row("SELECT ID, post_title FROM {$wpdb->posts} WHERE post_parent = {$post->ID} AND post_mime_type LIKE 'image%' ORDER BY menu_order"); if(!empty($thumb)){ $image = image_downsize($thumb->ID, $size); print "<img src='{$image[0]}' alt='{$post_title}' {$add} />"; } else { print "<img src='wp-content/themes/mytheme/images/post_not_imagem.jpg' alt='{$post_title}' {$add} />"; } }
How can I solve this problem? with the permalinks are coming in the url …/category/highlights/ causing this error.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘help permalinks’ is closed to new replies.