• Resolved bhaskarping

    (@bhaskarping)


    Hi,

    i m using related youtube video plugin, & there is option to use shortcode in post or page :
    [relatedYouTubeVideos]

    when i inset this code on single.php afrer tag

    it’s now showing any video showing only simple
    [relatedYouTubeVideos] text, they say your theme must support shortcode of this.

    is Hueman support this, means theme problem or plugin problem.

    Regards
    Adam

Viewing 9 replies - 1 through 9 (of 9 total)
  • bdbrown

    (@bdbrown)

    Hi Adam. Normally you don’t embed shortcodes within the php code. They are used either within the post/page or in a widget. This is from the plugin page:

    Also, this plugin offers you two ways to embed related videos:
    1. by using the shortcode [relatedYouTubeVideos] somewhere in your post/page content.
    2. by using the WordPress widget “Related YouTube Videos” in any of your widget areas (multiple instances are possible).

    Hope that helps.

    Thread Starter bhaskarping

    (@bhaskarping)

    Hi,
    Thanks for your quick reply,

    Still not understand how to use shortcode on post dynamically.

    Inserted in PHP file not working

    by using the shortcode [relatedYouTubeVideos] somewhere in your post content.

    what it’s mean? manually created post & add shortcode in compose section. then publish, then it’s work.

    using widget is a option, so it is possible to add a widget after post content , above to tag, related post

    Possible?

    bdbrown

    (@bdbrown)

    You asked:

    what it’s mean? manually created post & add shortcode in compose section. then publish, then it’s work.

    Yes, you create the post and add the shortcode somewhere in the content. Then, according to the plugin description:

    And you can specify the relation between the videos and your content by:
    – the title of your current post, page or custom post type.
    – the tags of your current post, page or custom post type.
    – the categories of your current post, page or custom post type.
    – any keywords you specify.

    Your second question:

    using widget is a option, so it is possible to add a widget after post content , above to tag, related post

    Again, from the plugin description:

    The difference between the widget and the shortcode is not in terms of functionality but usually in the context they reside. Widgets usually go into sidebars or footers and alike and the same widget usually shows up for many, if not all pages, just the same. Shortcodes are placed inside the actual content and therefore will only show up when the page or post where they’re put is shown.

    Thread Starter bhaskarping

    (@bhaskarping)

    Hi,

    Thank for explanation.

    Last thing : I m adding a footer widget & add the plugin there, it’s work. showing below the related post but showing video one in a line, vertically one by one.

    for solution they provide this code for showing inline :

    author says :
    You could add something like this to your css file

    .relatedYouTubeVideos li {
    display: inline;
    }

    I m using custom css plugin & put the code there, but it’s not working, maybe wrong place or plugin problem, don’t know or put the code in plugin css file.

    it’s matter of theme css or matter of plugin css files?

    Regards

    sharadjustin

    (@sharadjustin)

    .relatedYouTubeVideos li {
    display: inline;
    }

    You need to add this to your theme’s style.css because I’m not sure which plugin you’re using and can you please provide your site’s link.
    https://techrax.tk/

    Thread Starter bhaskarping

    (@bhaskarping)

    Hi sharadjustin,

    No, it’s will be on custom.css i have change video size & remove title, now it’s showing inline.

    only concern is about blank white space between main content area & footer widget showing below in screen shop
    http://postimg.org/image/9w1ijccbr/

    Regards

    sharadjustin

    (@sharadjustin)

    Sorry, I could’nt understand your question before and thanks for that image. My excellent piece of advice to you will be to install firebug on a firefox browser and try inspect element for that white space, then change that white space according to yourself in the custom css.
    https://techrax.tk/

    bdbrown

    (@bdbrown)

    @bhaskarping – Can you post a link to your site? Since you have a plugin installed there it’s difficult to know what to change without seeing it. Thanks.

    Thread Starter bhaskarping

    (@bhaskarping)

    Hi bdbrown,

    for some reason i don’t disclose my site here. will report this issue later with site name once i get approval from my partners.

    Regards

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘youtube shortcode not supported’ is closed to new replies.