Please help.

Discussion in 'ClassiCraft WordPress Theme' started by themotorcycledude, Aug 13, 2013.

  1. themotorcycledude

    themotorcycledude Member

    Joined:
    Jul 11, 2013
    Messages:
    83
    Likes Received:
    0
    Hello,

    I do not understand why these slashes are showing up in my posts. Please go to themotorcycledude.com. They're everywhere!

    Screen shot 2013-08-12 at 8.54.36 PM.png
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    Such problem is not global. It occur in some servers.
    For this open "index.php" file. search(ctrl+f) for "get_the_title". You will get three results. Add code there as shown in the image.

    Code:
    stripslashes(.........)
    stripslashes.png
     
  3. themotorcycledude

    themotorcycledude Member

    Joined:
    Jul 11, 2013
    Messages:
    83
    Likes Received:
    0
    I don't think it's a server thing. I've verified that magic quotes is off. Seems like a wordpress thing. In any case, you guys should override functions in your theme and add the stripslashes to your code. This way you can accommodate all the possible scenarios.

    I've added stripslashes with custom functions cc_the_excerpt() and cc_the_title(). The only way it could be server related is if the database somehow adds the slashes before the commit.
     

Share This Page