enviado
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Comments to my posts in Facebook to WordPressHello? Any suggestion? Cheers ??
Forum: Fixing WordPress
In reply to: Image in sidebar in all categories but oneThanks a lot esmi! Solved ??
Forum: Fixing WordPress
In reply to: Alert in the indexyes, but i wanted a plugin like wp-breaking news, but it doesnt work, fatal error ?? You can put the message from the admin without touching index.php code.
Thanks anyway… if anybody else have an answer is welcome ??
Forum: Themes and Templates
In reply to: Thumbnail not showing in sidebarAny help with this? cheers!
Forum: Fixing WordPress
In reply to: How to add more headlines in sidebarwell, i’ll try to ask in the css forum
Forum: Fixing WordPress
In reply to: How to add more headlines in sidebarThanks again, esmi, but it doesn’t work… i ve changed the css like this:
#sidebar .post img { border:3px solid #EFEFEF; float:left; margin:2px 8px 4px 0; width:94px; }
But nothing happens… the size of the thumbnail is not the same than in #content…
Forum: Fixing WordPress
In reply to: How to add more headlines in sidebarThanks esmi! It works as i want but i dont know what happens with the thumbnail. It shows different in the sidebar than in the content. This is the code in index:
</p> <a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a> <?php the_excerpt(); ?>
And i ve put in the sidebar like:
<?php $side_posts = get_posts('numberposts=5&offset=10'); foreach($side_posts as $post) : setup_postdata($post); ?> <li><p><a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></p></li> <?php endforeach; ?> </ul> <?php wp_reset_query();?>
But the image post is bigger than in the index…
By the way, this are the lines about thumbnail in functions.php:
# Displays post image attachment (sizes: thumbnail, medium, full) function dp_attachment_image($postid=0, $size='thumbnail', $attributes='') { if ($postid<1) $postid = get_the_ID(); if ($images = get_children(array( 'post_parent' => $postid, 'post_type' => 'attachment', 'numberposts' => 1, 'post_mime_type' => 'image',))) foreach($images as $image) { $attachment=wp_get_attachment_image_src($image->ID, $size); ?><img src="<?php echo $attachment[0]; ?>" <?php echo $attributes; ?> /><?php } }
Any help with this?
Forum: Fixing WordPress
In reply to: Desperate: Error 500, 1and1 and NO STYLESolved:
I have upload a folder with all my images here:
www.mydomain.com/wordpress/wordpress/wp-content/uploads...
It’s a weird solution but enough ??
Forum: Fixing WordPress
In reply to: Desperate: Error 500, 1and1 and NO STYLEAlmost solved:
I’ve tried in my cpanel redirect to /wordpress and in my general wp settings
wordpress url: mydomain.com
website url: mydomain.comBut i still have a small problem: i can’t see any image of my website.
Must i reupload all of them????
Forum: Fixing WordPress
In reply to: Desperate: Error 500, 1and1 and NO STYLEThanks for your post, cbogdan but it didn’t work… everything the same, without style ??
In my general settings i have:
WordPress url: mydomain.com/wordpress
Website url: mydomain.comAnd in my hosting cpanel the folder is redirected to /wordpress
??
Forum: Fixing WordPress
In reply to: Problem order my categoriesThanks a lot for the help.
This is the way i solved it:
In the functions.php of my theme i found:
# Displays a list of categories function dp_list_categories($exclude='') { if (strlen($exclude)>0) $exclude = '&exclude=' . $exclude; $categories = get_categories('hide_empty=1'.$exclude); $first = true; $count = 0; foreach ($categories as $category) { $count++; if ($count>5) break; // limit to 5 if ($category->parent<1) { if ($first) { $first = false; $f = ' class="f"'; } else { $f = ''; } ?><li<?php echo $f; ?>> <a href="<?php echo get_category_link($category->cat_ID); ?>"><?php echo $category->name ?><?php echo $raquo; ?></a></li> <?php } } }
And i changed for:
# Displays a list of categories function dp_list_categories($exclude='') { if (strlen($exclude)>0) $exclude = '&exclude=' . $exclude; $categories = get_categories('orderby=ID&hide_empty=1'.$exclude); $first = true; $count = 0; foreach ($categories as $category) { $count++; if ($count>7) break; // limit to 7 if ($category->parent<1) { if ($first) { $first = false; $f = ' class="f"'; } else { $f = ''; } ?><li<?php echo $f; ?>> <a href="<?php echo get_category_link($category->cat_ID); ?>"><?php echo $category->name ?><?php echo $raquo; ?></a></li> <?php } } }
As you can see, i put 7 as the limit and get_categories the orderby=id.
Thanks again!
Forum: Fixing WordPress
In reply to: How to config the loop in my indexThanks mate!
It worked but with a ‘but’. The (“cat=-6”) doesn’t work in Latest Post. It hasn’t any sense… i think i can ‘survive’ with your answer, but… any suggestion for excluding the category in the Latest Post?