319 posts Codestar
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+7 more
Codestar says

Hey Smuliii,

I am using too similar function with your function. and i did not find better function, yet :) i have tried a lot of functions, but this functions is better than others. RAW feature is good. hope we find another solutions…

499 posts
  • Has referred 1000+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+8 more
pixelentity says

The following is a custom filter we created to solve the same issue in our themes, feel free to use if it works for you as well:

https://gist.github.com/4555047
97 posts
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Located in Finland
+4 more
Smuliii says

The following is a custom filter we created to solve the same issue in our themes, feel free to use if it works for you as well: https://gist.github.com/4555047
Hooray, this works! :)

I really can’t say what’s the difference between mine and your code (since they both modify ‘the_content‘) but if this is accepted, I’ll start using it then.

Thanks for the code!

499 posts
  • Has referred 1000+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+8 more
pixelentity says

I really can’t say what’s the difference between mine and your code (since they both modify ‘the_content‘) but if this is accepted, I’ll start using it then.
you’re right, doesn’t require the extra “[raw]” but the principle is the same: it only gets applied where it should and leaves native/plugin defined shortcodes untouched.

We use in all our themes, only thing is we always include a note in “reviewer info” box to explain how it works just to be safe.

BF

97 posts
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Located in Finland
+4 more
Smuliii says

Yep it got approved! So thanks again! :)

2 posts
  • Has been part of the Envato Community for over 1 year
nizaar says

Yep it got approved! So thanks again! :)

Dear Smuliii.. Can you explain how to solve it manually? I’ve got the fixer code at https://gist.github.com/4555047 but don’t understand where should i insert this code?

Best regards,

nizaar

97 posts
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Located in Finland
+4 more
Smuliii says

Dear Smuliii.. Can you explain how to solve it manually? I’ve got the fixer code at https://gist.github.com/4555047 but don’t understand where should i insert this code?

Best regards,

nizaar
Well it really doesn’t matter, so just put it in your functions.php file.
2 posts
  • Has been part of the Envato Community for over 1 year
nizaar says

@ Smuliii Thanks a lot Smuliii.. I’m not a PHP-addict, does it only need to paste the code in the end of functions.php? Or how?

97 posts
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Located in Finland
+4 more
Smuliii says

@ Smuliii Thanks a lot Smuliii.. I’m not a PHP-addict, does it only need to paste the code in the end of functions.php? Or how?
Yep, and of course you want to change the shortcodes.
1 post
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
  • Located in United States
haveabyte says

So will the next release of SmartStartWP have this changed function and require that we modify all of our existing [raw] tags to something else in all of our existing content? Cuz I have 40,000 pages. Just kidding, but curious if I’ll have to change them. :)

If so that’s OK I’m sure you’ll put it in the documentation, hopefully people will read it when upgrading!

by
by
by
by
by
by