• yamizer

    (@yamizer)


    hello, i have this code that shows posts, and i want to limit or hide the posts exceprts is there any array should i use and add to this code?

    <?php
    
                        $args = array(
                            'post_status' => 'publish',
                            'posts_per_page' => $post_limit,
                            'paged' => $paged2,
                            'orderby' => 'date',
                            'meta_key' => 'things_checkbox',
                            'meta_value' => 'on',
                            'order' => 'DESC'
                        );
                        $query = new WP_Query($args);
                        while ($query->have_posts()) : $query->the_post();
                            featured_post();
                        endwhile;
                        $pag_args2 = array(
                            'format' => '?cat=' . $current_cat . '&paged2=%#%',
                            'current' => $paged2,
    						'prev_text'    => __('?'),
    						'next_text'    => __('?'),
    						'type'         => 'list',
                            'total' => $query->max_num_pages,
                            'add_args' => array('paged1' => $paged1)
                        );
    					echo paginate_links($pag_args2);
                        wp_reset_query();
                        wp_reset_postdata();
    					?>

    please help

  • The topic ‘array limit or hide excerpt’ is closed to new replies.