Skip to main content
All CollectionsPersonal websitesWordPress
WordPress: Code is displayed at the bottom of my articles
WordPress: Code is displayed at the bottom of my articles

What is this code, and why is it there?

Gregory Claeyssens avatar
Written by Gregory Claeyssens
Updated over 2 months ago

Just published an article on your WordPress website and saw some code at the bottom of the article? Let's take a look at why this happens.


Start resolving the code in my articles

What is the code underneath the article?

We add a short script at the end of each article that you publish. This tracks the stats of your article and enables features like the image gallery.

Why is the code showing?

The script should be embedded and not visible to the reader. If the code is showing, it might be caused due to changes made in the CMS instead of pushing a StoryChief update. Another cause is conflicting plugins, for example, a plugin that blocks scripts to be loaded on the website.

If that is not the case, then you may have a plugin enabled that removes a section of the code.

How to hide the code again?

We advise temporarily disabling all plugins (except ours) and try to publish again. That will more than likely resolve the issue. You can then reactivate plugins one-by-one while publishing articles to find the culprit.
​
From our experience, the WP-Markdown plugin can cause this.

πŸŽ‰ You're done, grab a coffee, you deserve it!

Check out the next steps below for more in-depth guides or follow-up actions.


πŸ“š Next steps

Did this answer your question?