236 posts
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • Microlancer Beta Tester
GradaStudio 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.

490 posts
  • Sold between 10 000 and 50 000 dollars
  • Referred between 10 and 49 users
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 3-4 years
wopethemes says

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

236 posts
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • Microlancer Beta Tester
GradaStudio 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

1175 posts
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
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 :)

490 posts
  • Sold between 10 000 and 50 000 dollars
  • Referred between 10 and 49 users
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 3-4 years
wopethemes 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.

236 posts
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • Microlancer Beta Tester
GradaStudio 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
by