@grenline123123

Как заменить информацию wordpress?

<?php 

                $args_vehicle = array(

                    'post_type' => 'vehicle_shipping',

                    'posts_per_page' => -1

                );

                $custom_query_vehicle = new WP_Query( $args_vehicle );

                while($custom_query_vehicle->have_posts()){ 

                        $custom_query_vehicle->the_post();



                            $postType = get_post_type( get_the_ID());

                            $postInfo = pods($postType, get_the_ID());
                            if($postInfo->display('url')){
                                $url = $postInfo->display('url');
                            }else{
                                $url = get_permalink($post->ID);
                            }

                    ?>

                    <div class="item">

                        <div class="width icon">

                            <img src="<?php echo $postInfo->display('icon') ?>" alt=""/>

                        </div>

                        <a href="<?= $url ?>" class="title">

                            <?php the_title(); ?>

                        </a>

                        <p>

                            <?php echo cut_title($post->post_content, 132); ?> 

                        </p>

                        <a href="<?= $url ?>" class="href">Learn more</a>

                    </div>

                    <?php     



                    }

            ?>

Мне необходимо заменить содержимое которое вытягивается откуда-то этим кодом, мне необходимо заменить ссылку и текст
  • Вопрос задан
  • 62 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы