Title: Code displaying in post title
Last modified: July 16, 2019

---

# Code displaying in post title

 *  Resolved [rboening](https://wordpress.org/support/users/rboening/)
 * (@rboening)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/code-displaying-in-post-title/)
 * I really like this plugin, which worked fine until now, but I just realised that
   with one of the latest updates (WordPress, my theme, or the plugin) in some instances
   code is displayed instead of the correct line break.
 * See [http://robotography.de/2019/05/26/saintagnes/](http://robotography.de/2019/05/26/saintagnes/)
   for the error, while the split still works fine in the posts overview page: [http://robotography.de/news/](http://robotography.de/news/)
 * Thanks in advance for any help and greetings from Germany,
    Rolf
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcode-displaying-in-post-title%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Chris Steman](https://wordpress.org/support/users/15km/)
 * (@15km)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/code-displaying-in-post-title/#post-11738121)
 * Hi Rolf,
 * Nice to meet you and greetings from Canada, your site shows off your great photography
   skills with the showing of your awesome photos.
 * Unfortunately I think this is issue is caused by your theme update. I tested 
   the titles on my site and was not able to duplicate with running the latest versions
   of each of the items. I am assuming it is the theme by looking at the source 
   code of the post and pages on your site and it looks to be encoding the special
   characters of the page title.
 * This can be checked by going into theme editor and checking the code of the index.
   php file, the title is about midway through the code and under the html comment“
   Begin content”.
 * I will keep testing but let me know if you have any questions.
 * Thank you,
    Chris
 *  Thread Starter [rboening](https://wordpress.org/support/users/rboening/)
 * (@rboening)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/code-displaying-in-post-title/#post-11741700)
 * Hi Chris,
 * thanks for your quick answer and your kind remarks about my site. I had a look
   at the page source and see what you mean. While the overview page has the correct
   reference to your class
 * title=”New Gallery “Into The Trees””>New Gallery <span class=”pt_splitter pt_splitter-
   1″>”Into The Trees”</span>
 * the problematic page for some unknown reason seems to escape the characters and
   hence displays them verbatim instead of executing the code:
 * `
    <h1>New Gallery <span class="pt_splitter pt_splitter-1">"Saint Agnes Street
   Shots"</span></h1>
 * I also inspected the index.php page, but unfortunately it isn’t as explicit as
   one might hope. There is a reference to class “post_quote_title” which could 
   be the culprit, but I need to take a deeper dive to understand better where it
   is defined.
 * I’ll contact the developer of the theme if I’m certain where the error comes 
   from.
 * Many thanks again for your support, highly appreciated, keep up the good work!
 * Best wishes,
    Rolf
    -  This reply was modified 6 years, 10 months ago by [rboening](https://wordpress.org/support/users/rboening/).
    -  This reply was modified 6 years, 10 months ago by [rboening](https://wordpress.org/support/users/rboening/).
 *  Thread Starter [rboening](https://wordpress.org/support/users/rboening/)
 * (@rboening)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/code-displaying-in-post-title/#post-11741716)
 * Funny. I can’t seem to get this page to correctly display the escaped html as
   it seems to replace everything immediately, so that both code snippets look identical,
   but I’m sure you know what I mean…
 *  Plugin Author [Chris Steman](https://wordpress.org/support/users/15km/)
 * (@15km)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/code-displaying-in-post-title/#post-11742272)
 * Hi Rolf,
 * Your welcome and thank you for asking the developer of the theme and hopefully
   they will be helpful and let you know if that page title is being encoded or 
   not.
 * For the page that you can’t get to display the escaped html, what page is that
   happening on?
 * Thank you,
    Chris
 *  Thread Starter [rboening](https://wordpress.org/support/users/rboening/)
 * (@rboening)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/code-displaying-in-post-title/#post-11748930)
 * Hi Chris,
 * with my comment above I just meant the support forum page right here where I 
   pasted the critical code and it just replaces the escaped code back when displaying
   the page.
 * Anyway, back to the problem itself: Unfortunately, I realised that my support
   on Themeforest for the theme has run out, so I would have to pay nearly the same
   amount again to contact the developer. As this has not proved too helpful in 
   the past, I decided against it and had a dive into the sources myself.
 * In the template-post-header.php I found the code for for displaying the post 
   title as
 * `
    <h1><?php echo esc_html($page_title); ?></h1>
 * and surprise, surprise, after replacing it with
 * `
    <h1><?php echo $page_title; ?></h1>
 * the splitter works like a charm again.
 * Now, editing this in the themes source doesn’t seem like the brightest of ideas
   as it will get overridden again with the next update (surprisingly I can still
   download these although being out of support), but I already have derived a child
   theme for other purposes, so now I only need to find the right place for changing
   the template code there and keep my fingers crossed that it doesn’t have any 
   unwanted side effects.
 * Thought I’d let you know that it really had nothing to do with your excellent
   plugin.
 * Kind regards,
    R.
 *  Plugin Author [Chris Steman](https://wordpress.org/support/users/15km/)
 * (@15km)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/code-displaying-in-post-title/#post-11749782)
 * Hi Rolf,
 * I am glad you were able to find and solve the issue in the theme files and that’s
   good that you are able to still download updates to the theme. If they just added
   that to the theme then maybe they will remove it in the next update, especially
   since that function is only used for only the one page title and not all.
 * Thank you for your kind words about the plugin and keep up with the great photography.
 * Thank you,
    Chris

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Code displaying in post title’ is closed to new replies.

 * ![](https://ps.w.org/page-title-splitter/assets/icon-256x256.png?rev=1558575)
 * [Page Title Splitter](https://wordpress.org/plugins/page-title-splitter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-title-splitter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-title-splitter/)
 * [Active Topics](https://wordpress.org/support/plugin/page-title-splitter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-title-splitter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-title-splitter/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Chris Steman](https://wordpress.org/support/users/15km/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/code-displaying-in-post-title/#post-11749782)
 * Status: resolved