302 posts Codestar
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Has been a member for 5-6 years
  • Microlancer Beta Tester
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
+2 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…

488 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Won a Competition
  • Referred between 1000 and 1999 users
  • Author had a Free File of the Month
  • Author had a File in an Envato Bundle
  • Bought between 10 and 49 items
+3 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
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Finland
  • Has been a member for 5-6 years
  • Referred between 100 and 199 users
  • Sold between 250 000 and 1 000 000 dollars
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!

488 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Won a Competition
  • Referred between 1000 and 1999 users
  • Author had a Free File of the Month
  • Author had a File in an Envato Bundle
  • Bought between 10 and 49 items
+3 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
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Finland
  • Has been a member for 5-6 years
  • Referred between 100 and 199 users
  • Sold between 250 000 and 1 000 000 dollars
Smuliii says

Yep it got approved! So thanks again! :)

2 posts
  • Has been a member for 1-2 years
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
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Finland
  • Has been a member for 5-6 years
  • Referred between 100 and 199 users
  • Sold between 250 000 and 1 000 000 dollars
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 a member for 1-2 years
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
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Finland
  • Has been a member for 5-6 years
  • Referred between 100 and 199 users
  • Sold between 250 000 and 1 000 000 dollars
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
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
  • 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