What shortcodes are you referring to?
Hi, WPyogi.
I am wondering will in future some of this html ever change and my posts will be messy, will margin always be margin, and always work this way if I use just editor?
And, with shortcode, will they always exist in wordpress, what if I decide to move posts in some other cms where shortcodes not working?
I can’t decide which way I will choose.
My website will be news about sport, with images and videos.
What do you recommend?
I don’t know what shortcodes you are talking about. Are they part of a theme you are using?
There’s no reason to avoid using the editor – your posts are stored in the database and things like margins can always be modified via CSS.
Shortcodes aren’t part of my theme.
I don’t want to be locked with that theme ‘coz of shortcodes.
I mean on shortcodes that I create.
For example, for text I can use:
function text_news( $atts, $content = null ) {
return '<div class="text_news" style="display: block; margin-left: 180px;">'.$content.'</div>';
}
add_shortcode( 'text_news', 'text_news' );
and writte inside post:
[text_news]David Beckham scored goal.....[/text_news]
or I can use this inside post:
<div class="text_news" style="display: block; margin-left: 180px;">David Beckham scored goal.....</div>
That are two ways of writtting, and I am in dilema which one is better in overall.