Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter annie58

    (@annie58)

    Video Thumbnails checked this both:
    Save Thumbnails to Media Library
    Automatically Set Featured Image

    User Submitted Posts:
    Auto publish: Alwways publish imidiatelly (Here is problem, if it is draft and I publish it from backend, it will set featured image, if it is on auto publish, just video thumbnail is set and not featured image, untill i open post and update it.)

    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.

    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?

Viewing 3 replies - 1 through 3 (of 3 total)