• Hi.

    I am new in wordpress, I read about shortcodes.
    I don’t know should I start writting my posts using WYSIWYG, or should I use shortcodes for all content inside my posts.
    What is better of this two ways of writting posts?
    What do you recommend?

Viewing 4 replies - 1 through 4 (of 4 total)
  • What shortcodes are you referring to?

    Thread Starter annie58

    (@annie58)

    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.

    Thread Starter annie58

    (@annie58)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Writting posts using WYSIWYG editor or shortcodes?’ is closed to new replies.