Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/08/2011, 00:16
daryumi
 
Fecha de Ingreso: agosto-2011
Mensajes: 10
Antigüedad: 12 años, 8 meses
Puntos: 0
Exclamación Necesito que me ayuden para modificar este código para mi blog!

Me gustaría que alguien me ayudase como podría modificar este código para mi blog que es [URL="http://cesdecorp.org"]http://cesdecorp.org[/URL] Necesito que me ayuden! estoy desesperado! Por accidente se me borró el archivo index y me dijeron que ponga este index, pero debo modificarlo para el blog! SI ya existe un tema asi mil disculpas!

Código PHP:

?php get_header() ?>
<div id="content">
        <?php if (have_posts()) : while (have_posts()) : the_post();?>
        <div <?php if (function_exists("post_class")) post_class(); else print 'class="post"'?> id="post-<?php the_ID(); ?>"><!-- post div -->
                <h2 class="title<?php if(is_sticky()) {echo " sticky-h2";} ?>"><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h2>
                <div class="post-info-top">
                        <span class="post-info-date">Posted by <?php the_author(); ?> on <?php the_time(get_option'date_format' )); ?> <?php edit_post_link('Edit''['']'); ?></span>
                        <span id="gotocomments"><?php comments_popup_link('0 comments''1 comment''% comments'); ?><?php if(function_exists('the_views')) { echo " | ";the_views(); } ?></span>
                </div>
                <div class="fixed"></div>
                <div class="entry">
                        <?php the_content(__('&raquo; Read more...')); ?>
                </div><!-- END entry -->
                <?php if(is_sticky()) { ?>
                        <div class="entry"><p>This is a sticky post! <a href="<?php the_permalink() ?>" class="more-links">continue reading?</a></p></div>
                <?php ?>
        </div><!-- END post -->
        <?php endwhile; else: ?>
        <div class="post post-single">
                <h2 class="title title-single"><a href="#" title="Error 404 - Not Found">404 Error - Not found<</a>/h2>
                <div class="post-info-top" style="height:1px;"></div>
                <div class="entry">
                        <p>Sorry, but you are looking for something that isn’t here.</p>
                        <h3>Random Posts</h3>
                        <ul>
                                <?php
                                        $rand_posts 
get_posts('numberposts=5&orderby=rand');
                                        foreach( 
$rand_posts as $post ) :
                                
?>
                                <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
                                <?php endforeach; ?>
                        </ul>
                        <h3>Tag Cloud</h3>
                        <?php wp_tag_cloud('smallest=9&largest=22&unit=pt&number=200&format=flat&orderby=name&order=ASC');?>
                </div><!--entry-->
        </div><!--post-->
        <?php endif; ?>
<?php
if(function_exists('wp_page_numbers')) {
        
wp_page_numbers();
}
elseif(
function_exists('wp_pagenavi')) {
        
wp_pagenavi();
} else {
        global 
$wp_query;
        
$total_pages $wp_query->max_num_pages;
        if ( 
$total_pages ) {
                echo 
'<div id="pagination">';
                        
posts_nav_link(' | '__('&laquo; Previous page'), __('Next page &raquo;'));
                echo 
'</div>';
        }
}
?>
</div><!--content-->
<?php get_sidebar() ?>
<?php get_footer
() ?>