• commented text with php code changes.
    i comment

     <?php 
            // the query
            $playpost_args = array(
                'category_name' => 'anime',
                'posts_per_page' => -1,
                'orderby', 'title',
            );
    
            $playpost = new WP_Query( $playpost_args ); 
    
            if ( $playpost->have_posts() ) : 
                    while ( $playpost->have_posts() ) : 
                        $playpost->the_post(); ?>
    
                    <div class="wb">    
                        <h1><?php the_title(); ?></h1>
                        <?php  
                            $max = 3; // shows first number paragraphs 
                            $content = apply_filters('the_content', get_the_content()); 
                            $content = explode("</p>", $content); 
    
                            for ($i = 0; $i < $max; $i++) { 
                                echo $content[$i] . "</p>"; 
    
                            } 
                        ?>
                        <a href="<?php echo get_permalink(); ?>" class="ws"></a>
                    </div>
    
                <?php endwhile; ?>
                <!-- end of the loop -->
                <?php wp_reset_postdata(); ?>
    
            <?php else : ?>
                <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
            <?php endif; ?>
        

    and getting this in post comment(admin bar)

    View post on imgur.com


    How transfer that with full code???

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

The topic ‘How to comment text code transfer free without any changes’ is closed to new replies.