Q/A is messing up blog post code

I'm trying to insert an image into a blog post, but everytime i save the blog post it changes this:

<img class="alignleft size-full wp-image-171" style="padding: 0 15px 15px 0" alt="hand holding" src="http://www.thehumancan.com/wp-content/uploads/2013/06/handholding.jpg" width="250" height="376" />

into this

<img class="alignleft size-full wp-image-171" style="padding: 0 15px 15px 0" title="ask a question" href="/questions/ask" width="250" height="376" />

Why is your plugin messing with my post code? Why can't i inject a simple image?

Eventually I got the post fixed up but only after disabling Q/A, reloading the editor on the post and fixing the code then saving, everything went fine after that. I shouldn't have to disable your plugin though in order to add an image.

  • Patrick
    • Support Monkey

    Hi @Darryl

    Welcome to the forums!

    Yah, that makes no sense at all, does it? I've also never encountered this particular issue before.

    It is likely due to a conflict either with your current theme, or another plugin/script running on your site.

    Basic troubleshooting protocol should be followed to locate the possible conflict.

    Revert to a default WordPress theme (Twenty-Eleven or Twenty-Twelve). Is the problem still there? If the answer is no, then it's a theme conflict. If it is still present...

    De-activate all plugins. Then re-activate them one by one, and test with each activation until you find the problem plugin.

    Once we've zeroed in on the possible cause(s) of your issue, we'll be better equipped to deal with it.

  • Darryl
    • New Recruit

    Hmm, how could a conflict with another plugin or theme cause it to change the img tag to an invalid image tag with /questions/ask href? I could imagine there being a conflict if it was mucking up the code in any other way, but injected href="/questions/ask" kinda says that its something to do with the q/a plugin.

    Could you explain why or IF q/a is even parsing my posts and running any functions at all to change my code?

    With more data I may be able to narrow down this "conflict" without a lengthy procedure of messing up the site :slight_smile:

  • Patrick
    • Support Monkey

    Hi again @Darryl

    The plugin uses existing theme templates to inject content into the available content area. But it may not function perfectly as designed in every theme.

    Fortunately, WordPress has a theme hierarchy that this plugin does respect. Look in the qa/default-templates folder of a copy you have downloaded to your computer. You can simply copy the required templates to the root of your current theme, and edit them if required. The plugin will use the copied templates if they are present in your theme.

    You can further customize things if needed by disabling the plugin's default CSS and/or javascipt. See the readme.txt in the qa folder for more on that.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.