首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >WordPress标记错误地显示在页面中

WordPress标记错误地显示在页面中
EN

Stack Overflow用户
提问于 2019-12-09 23:52:20
回答 1查看 36关注 0票数 0

我们正在从生产服务器WP-v3.9.24导出代码,并将该代码导入到生产前的serverWP-v5.2.4。我们关于Prod的代码显示的功能很好,比如"+“图标和”继续阅读“。

当我们将相同的代码移到预驱动程序时,这些特性,比如"+继续阅读“和其他特性,反而会显示出什么是WP标记语言。我希望这是足够的信息。有人熟悉这件事吗?有人能帮我朝正确的方向前进吗?我将发布一个示例URL,显示工作正常的东西,以及一个URL,显示事物如何不正确地显示:

代码语言:javascript
复制
https://www.distancecme.com/course/bls-nccp-anytime/?portfolioID=1314 - this display properly.
https://dcmeqa.wpengine.com/course/live-bls-nccp-anytime/ - this does not display properly.

我认为我不能显示截图,所以请简单地使用上面的链接来查看代码是如何正确地显示的,而不是正确的。

一些未解析的代码,以其原始形式出现在这里,这是一个公共站点,下面是WP标记代码

代码语言:javascript
复制
NCCR BLS

Designed to meet the NREMTs latest requirement for BLS Providers, the National Continued Competency Requirements or NCCR. This program meets the required hours for this program. These are LIVE courses and are 10 classes of the 24 hour refresher for a total of 20 hours. You do not have to take them in order. For a complete description please view our free DEMO. CECBEMS/CAPCE Accredited F-5 VILT

[accordian class="" id=""]
[toggle title="Continue Reading" open="no"]
Airway/Respiration/Ventilation: 1.5 Hours

Ventilation [1 Hours]

Oxygenation [0.5 Hour]
Cardiovascular: 6 Hours

Post-Resuscitation Care [0.5 Hour]

Ventricular Assist Devices [0.5 Hour]

Stroke [1 Hour]

Cardiac Arrest [2 Hours]

Pediatric Cardiac Arrest [2 Hours]
Trauma: 1.5 Hours

Trauma Triage [0.5 Hour]

Central Nervous System (CNS) Injury [0.5 Hour]

Hemorrhage Control [0.5 Hour]
Medical: 6 Hours

Special Healthcare Needs [1.5 Hours]

OB Emergencies [0.5 Hour]

Infectious Diseases [0.5 Hour]

Pain Management [0.5 Hour]

Psychiatric and Behavioral Emergencies[0.5 Hour]

Toxicological Emergencies – Opioids[0.5 Hour]

Neurological Emergencies – Seizures[0.5 Hour]

Endocrine Emergencies – Diabetes[1 Hour]

Immunological Emergencies [0.5 Hour]
Operations: 5 Hours

At-Risk Populations [0.5 Hour]

Ambulance Safety [0.5 Hour]

Field Triage—Disasters/MCIs [0.5 Hour]

EMS Provider Hygiene, Safety, and Vaccinations [0.5 Hour]

EMS Culture of Safety[0.5 Hour]

Pediatric Transport [0.5 Hour]

Crew Resource Management [1 Hour]

EMS Research[0.5 Hour]

Evidence Based Guidelines [0.5 Hour]

CAPCE/CECBEMS Accredited 17-GANN-F5-0011

[/toggle]
[/accordian]

[/one_half]

[one_half last="yes" class="" id=""]

Anytime EMS CEU Package

This EMS bundle provides anytime access to over 100 self-directed learning modules. Each module is 1.0 hour in length and upon successful completion offers 1.0 credit via CAPCE F-3 for a total distributive learning credit of 100 plus CEUs. This bundle provides quality education in a recorded format, Perfect for the busy EMT, AEMT, Paramedic. These courses are accepted by the National Registry of EMTs for recertification of EMTs, AEMTs, and Paramedics for the Distributive learning portion of your recertification. Save by bundling this with our live paramedic or EMT refresher course for a total refresher package. (Once issued we can not refund the cost of the Anytime Program).

This can be bundled with the live paramedic or live EMT refresher course for a complete recertification package.
[accordian class="" id=""]
[toggle title="Continue Reading" open="no"]
Do you prefer to call in with your credit card number? We can take your order by phone. Call 267-417-0009, M-F 9-5 eastern.

Length:

1 hour each course over 100 courses for a total of 100 Hours

Continuing Education Hours Provided:

1 credits each course – CECBEMS/CAPCE F-3 APPROVED

[/toggle]
[/accordian]

[/one_half]


[button link="https://store.distancecme.com/dcmecartadd/dcme/addproducttocart/sku/243US18022/" color="default" size="" type="" shape="" target="_self" title="" gradient_colors="|" gradient_hover_colors="|" accent_color="" accent_hover_color="" bevel_color="" border_width="1px" shadow="" icon="" icon_divider="yes" icon_position="left" modal="" animation_type="0" animation_direction="down" animation_speed="0.1" class="" id=""]Enroll Now[/button]
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-12-10 00:01:26

听起来内容没有通过内容过滤器传递。您所看到的内容称为短码,它们被the_content过滤器转换为HTML (通常由the_content()函数调用)。

如果你可以的话,我建议你用

代码语言:javascript
复制
the_content();

输出内容。有时,您可能希望将内容作为字符串获取,以便在输出之前进行额外处理,在这种情况下,只需确保将内容通过the_content筛选器传递,如下所示

代码语言:javascript
复制
$content = get_the_content();
apply_filters( 'the_content', $content ); /* converts shortcodes into HTML */
echo $content;
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59258304

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档