Merhaba arkadaşlar AccessPress Mag V2.4.9 isimli temayı kurdum siteme fakat bir yerini değiştirmek isiyorum. Temanın panelinde ana sayfa için 4 farklı blok var her her blok için sadece 1 kategori seçimi yapılabiliyor. Ben ana sayfamda 4 numaralı bloku kullanmak istiyorum, 4 numaralı bloku seçtiğimde diğer bloklar gözükmüyor sadece 4 numarada seçtiğim gözüküyor sorun yok ama.
Tek 1 kategori seçebildiğim için işimi görmüyor. Ben bu blokta seçtiğim kategori yerine son yazdıklarımı göstermek istiyorum yani tek bu bloktan siteyi kontrol etmek istiyorum.
Kod bu yardımlarını bekliyorum.
<section class="forth-block clearfix wow fadeInRight">
                <?php
                    $block4_cat = of_get_option( 'featured_block_4' );
                    if( !empty( $block4_cat ) ) {
                        $posts_for_block4 = of_get_option( 'posts_for_block4' );
                        $category_info_4 = get_category_by_slug( $block4_cat );
                ?>
                <div class="second-block-wrapper">
                    <div class="block-post-wrapper clearfix">
                    <?php
                        $block4_args = array(
                                            'category_name'=>$block4_cat,
                                            'post_status'=>'publish',
                                            'posts_per_page'=>$posts_for_block4,
                                            'order'=>'DESC'
                                            );
                        $block4_query = new WP_Query( $block4_args );
                        $b_counter = 0;
                        $total_posts_block4 = $block4_query->found_posts;
                        if( $block4_query->have_posts() ) {
                            while( $block4_query->have_posts() ) {
                                $b_counter++;
                                $block4_query->the_post();
                                $b4_image_id = get_post_thumbnail_id();
                                $b4_big_image_path = wp_get_attachment_image_src( $b4_image_id, 'accesspress-mag-block-big-thumb', true );
                                $b4_image_alt = get_post_meta( $b4_image_id, '_wp_attachment_image_alt', true );
                    ?>
                                <div class="single_post non-zoomin clearfix">
                                    <?php if( has_post_thumbnail() ) { ?>  
                                        <div class="post-image">
                                            <a href="<?php the_permalink();?>"><img src="<?php echo esc_url( $b4_big_image_path[0] ); ?>" alt="<?php echo esc_attr( $b4_image_alt ); ?>" /></a>
                                            <a class="big-image-overlay" href="<?php the_permalink(); ?>"><i class="fa fa-external-link"></i></a>
                                        </div><!--. post-image-->
                                    <?php } ?>
                                        <h3 class="post-title"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h3>
                                        <div class="block-poston"><?php do_action( 'accesspress_mag_home_posted_on' ); ?></div>
                                </div><!-- .single_post -->
                                <?php if( $b_counter %2 == 0 ){ echo '<div class="clearfix"></div>'; } ?>                    
                    <?php                    
                            }
                        }//endif wp_query
                    ?>
                    </div><!-- .block-post-wrapper -->
                </div><!-- .forth-block-wrapper -->
                <?php
                    }//endif block_cat
                    wp_reset_query();
                ?>
              </section><!-- .forth-block -->