ThemeForest

Shortcodes vs TinyMCE Editor Styles

221 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • India
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
atinder says

Hi Everyone, I am working on a custom shortcodes module for my themes and i am bit confused which way should i choose.

i read this thread http://justintadlock.com/archives/2011/05/02/dealing-with-shortcode-madness And as far as i have seen every theme on themeforest uses tons of shortcodes which can lead to those mentioned problems in the link.

However while Using the other method justin mentioned, i find it little clumsy to implement div’s and nesting of styles can be painful thing.

Any ideas for better and maintainable code ? Thanks for the help.

372 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
  • Vietnam
rongcon says

it’s not shortcodes tutorials for coder. you can find some better tutorial about shortcodes via google.

221 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • India
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
atinder says

@rongcon thats not what i asked, read carefully. i don’t need a tutorial i need a suggestion which technique of the two(mentioned above) is better over other and why. thanks

1122 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

I used my own shortcode plugin.. when I create a new theme I will just activate it.. so for me it’s shortcode :)

372 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
  • Vietnam
rongcon says

sorry I did not read carefully. It’s a problem with shortcode system of wordpress. There are some suggestions:
1. using shortcode plugins . then you can switch to everytheme and the shortcode will not lose.
2. justin’s solution.then you can switch theme without bad characters , the shortcode can be lose.
3. my solution : page builder + default editor:
- page buider : save all informations of shortcodes to post meta.
- default editor : keep the content in normal styles.

so when switch to new theme , there are no bad characters need to be removed. and the content still can be keep.

221 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • India
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
atinder says

thanks for replies. page builder seems good, but is there any way to synchronize content between page builder and default editor. so that we don’t strip out the native functionality. any ideas ?

by
by
by
by
by