Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter enviado

    (@enviado)

    Hello? Any suggestion? Cheers ??

    Thread Starter enviado

    (@enviado)

    Thanks a lot esmi! Solved ??

    Forum: Fixing WordPress
    In reply to: Alert in the index
    Thread Starter enviado

    (@enviado)

    yes, 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 ??

    Thread Starter enviado

    (@enviado)

    Any help with this? cheers!

    Thread Starter enviado

    (@enviado)

    well, i’ll try to ask in the css forum

    Thread Starter enviado

    (@enviado)

    Thanks 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…

    Thread Starter enviado

    (@enviado)

    Thanks 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?

    Thread Starter enviado

    (@enviado)

    Solved:

    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 ??

    Thread Starter enviado

    (@enviado)

    Almost solved:

    I’ve tried in my cpanel redirect to /wordpress and in my general wp settings

    wordpress url: mydomain.com
    website url: mydomain.com

    But i still have a small problem: i can’t see any image of my website.

    Must i reupload all of them????

    Thread Starter enviado

    (@enviado)

    Thanks 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.com

    And in my hosting cpanel the folder is redirected to /wordpress

    ??

    Thread Starter enviado

    (@enviado)

    Thanks 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!

    Thread Starter enviado

    (@enviado)

    Thanks 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?

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