User | Post |
1:15 pm July 18, 2012
| Financial Samurai
| | |
| Admin
| posts 1803 |
|
|
|
Howdy Folks,
Anybody ever copy and paste a script in the HTML tab of a post or page, preview, or save, only to have nothing come up and the script disappear?
Wordpress seems very temperamental on scripts, and I've got to basically copy a script in HTML, not do anything else but save or publish for the script to work. As soon as I navigate to Visual tab and write some content, the script disappears.
Thoughts and solutions?
Thx,
Sam
|
Regards,
Sam
Financial Samurai - Helping you achieve financial freedom sooner, rather than later.
Yakezie Network Founder
|
|
1:24 pm July 18, 2012
| 20s Finances
| | |
| Admin
| posts 1147 |
|
|
|
I've had this happen before as well (with some affiliate stuff), but I haven't found out why. There seems to be no rhyme or reason and I have just had to play around with it to get it to stay. I'd love to hear other people's solutions.
|
|
|
3:50 pm July 18, 2012
| Edward Antrobus
| | Fort Collins, CO | |
| Member
| posts 1008 |
|
|
|
I've run into this problem myself. Once I add a script, I have to stay in HTML mode, so I try to add any scripts at the very end. I think it's because the visual editor is trying to interpret the script as text and will add formatting characters.
|
I'm looking for editors, beta-readers, and some demographic research for my upcoming novel, Once Upon a Saturn Moon. If you like reading soft sci-fi thrillers, maybe with a touch of romance thrown in, you can find more information at http://seampublishing.com/once…..aturn-moon
If You Can Read, You Can Cook – http://www.ifyoucanread.com | Think you can't cook? If you can read this sentence, then you can.
SEAM Publishing – http://www.seampublishing.com | eBook formatting and publishing service
|
|
5:52 pm July 18, 2012
| MyJourneytoMillions
| | |
| Member
| posts 1012 |
|
|
|
Sam,
I use the iframe script when I put together my investment posts and the only way I can get it to work is to add them in the html tab right before I publish
|
|
6:15 pm July 18, 2012
| Financial Samurai
| | |
| Admin
| posts 1803 |
|
|
|
Post edited 9:18 am – July 19, 2012 by Financial Samurai
Got it. So add the script right at the end. That's easy enough to do. Good to hear it is a common problem.
Wonder why WP just doesn't go and fix it.
|
Regards,
Sam
Financial Samurai - Helping you achieve financial freedom sooner, rather than later.
Yakezie Network Founder
|
|
5:42 am July 19, 2012
| MoneyBeagle
| | |
| Member
| posts 1466 |
|
|
|
Edward Antrobus said:
I've run into this problem myself. Once I add a script, I have to stay in HTML mode, so I try to add any scripts at the very end. I think it's because the visual editor is trying to interpret the script as text and will add formatting characters.
This is what I do as well. And, like you said, Sam, just insert it at the end after you've done everything else.
|
|
|
6:32 am July 19, 2012
| Glen Craig
| | |
| Member
| posts 1087 | |
|
|
Yup, WP doesn't like all HTML in the visual tab. Like you said, add it when you are ready to go and save in the HTML tab.
|
|
|
9:59 am July 19, 2012
| Khaleef @ KNS Financial
| | Fat Guy, Skinny Wallet | |
| Member
| posts 3149 |
|
|
|
I have to do the same thing for my videos – add the script right when I am ready to publish. Unfortunately, you must use the HTML editor (or copy the script to add at the end again) if you ever go back and edit the post, or the script will disappear. It's really a pain.
|
|
|
1:06 pm July 19, 2012
| Eric – PersonalProfitability.com
| | Portland, OR | |
| Member
| posts 2120 |
|
|
|
I have the same problem and also wonder why WP doesn't fix that one. Maybe not enough complaints yet?
|
|
|
9:32 am July 20, 2012
| TightFistedMiser
| | |
| Member | posts 361 |
|
|
|
Maybe Wordpress doesn't consider it a problem. I've never thought of it as a bug, but just figured once you were in html you needed to stay in html. I am able to go html>visual but going back to html again messes up the script.
|
|
|
6:43 pm July 25, 2012
| PK @ DQYDJ
| | The Intersection of Politics, Economics and Personal Finance. | |
| Moderator
| posts 361 |
|
|
|
I put scripts in around 20% of my articles and this happens to me all the time, heh. Assuming you have it saved:
- Exit the article where the script disappeared (don't save!)
- Edit an article which doesn't have a script in it
- Set that article to html mode
- Go back to the article screen
- Edit the article with the script in it – you should be in html mode and your script will be back
Some other tricks I've done are embedding my big scripts in the header with php, and using iFrames (ESPECIALLY when using stuff like jquery, since Wordpress overwrites the '$').
|
|
|