Ако може едно рамо с PHP код за ВП

waldes

Well-Known Member
Искам да ''побългара'' ''read more'' в постовете ( примерно на ''Прочети още''), но гадината се инати:).

post.php:

Код:
<?php global $theme; ?>
    
    <div <?php post_class('post clearfix'); ?> id="post-<?php the_ID(); ?>">
    
        <?php if(comments_open( get_the_ID() ))  {
                ?><div class="postmeta-comment"><?php comments_popup_link( '0', '1', '%' ); ?> </div><?php
            }
        ?>
        
        <h2 class="title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Към статията за %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>

        <div class="postmeta-primary">

            <span class="meta_date"><?php echo get_the_date(); ?></span>
           &nbsp;  <span class="meta_categories"><?php the_category(', '); ?></span>
                
        </div>
        
        <div class="entry clearfix">
            
            <?php
                if(has_post_thumbnail())  {
                    ?><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(
                        array($theme->get_option('featured_image_width'), $theme->get_option('featured_image_height')),
                        array("class" => $theme->get_option('featured_image_position') . " featured_image")
                    ); ?></a><?php  
                }
            ?>
            
            <?php
                the_content('');
            ?>

        </div>
        
        [B]<?php if($theme->display('read_more')) { ?>
        <div class="readmore">
            <a href="<?php the_permalink(); ?>#more-<?php the_ID(); ?>" title="<?php printf( esc_attr__( 'Към статията за %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php $theme->option('read_more'); ?>НЕ ИСКА ГАДИНАТА!!!!</a>
        </div>
        <?php } ?>[/B]
        
    </div><!-- Post ID <?php the_ID(); ?> -->
 

Горе