首页 > 解决方案 > 显示英文字符而不是阿拉伯语 - WordPress

问题描述


我在我的网站上发布圣训,并以 3 种翻译形式发布:阿拉伯语、乌尔都语、英语。在圣训的页面上,圣训一一显示​​,它显示的是阿拉伯语摘录文本。
查看我的网站,这是我的网站链接:IF Islam

看这个截图: 在此处输入图像描述

我想在这里显示英语圣训摘录文本,而不是阿拉伯语和乌尔都语。
哪个 PHP 代码可以做到这一点?
请帮忙

这是content.php代码:

<div class="col-lg-8 col-md-6">
    <div class="card-body">
       <a href="<?php the_permalink(); ?>" class="">
           <h2 class="single_post_title h3-responsive text-primary mb-1"><?php the_title(); ?></h2>
       </a>
       <div class="blog_meta">
           <time class="blog_meta_posted_on grey-text"><?php the_time('F j, Y g:i a'); ?></time>
           <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" class="blog_meta_author grey-text"><?php the_author(); ?></a>
           <a href="<?php the_permalink(); ?>#responses" class="blog_meta_count_comments grey-text"><?php echo get_comments_number(); ?> Comments</a>
           <label class="blog_meta_tags_list">
                <?php echo get_the_tag_list( '', ', ', '' ); ?>
           </label>
       </div>
       <div class="blog_excerpt_content black-text m-0 mt-2">
           <?php the_excerpt(); ?>
       </div>
       <a href="<?php the_permalink(); ?>" class="btn btn-primary">Read More</a>
    </div>
</div>

标签: phpwordpresswordpress-themingcustom-wordpress-pages

解决方案


我认为我们需要更多信息才能正确回答您的问题。对于初学者,您能否向我们展示您用于显示摘录的代码。根据您的问题,我只能想象您在 CMS 的摘录中按字面输入的阿拉伯语文本。


推荐阅读