236 posts
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
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.

498 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
wopethemes says

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

236 posts
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
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

1179 posts
  • Has referred 200+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
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 :)

498 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
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
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
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 ?

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by