Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ilGhera

    (@ghera74)

    Hi awpt.
    The best way to use JW7 into WordPress is with JW Player 7 for WordPress – Premium.
    https://www.ilghera.com/product/jw-player-7-for-wordpress-premium/
    It also includes related videos.
    That said, if you decide to add JW7 using code, you should be able to use Related Videos for JW Player, since all what it does is generate feeds.
    Please, let me have a full url of your feed and let me see if I can help you ??

    Thread Starter awpt

    (@awpt)

    Hi thanks for the quick reply, no Im developing a theme and the player is added in directly in theme so everything is working fine.

    my code is this one

    <?php
    $src = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
    $video = urlencode($video);
    $video = get_post_meta($post->ID,'awpt_videourl', true);
    $sefurL = get_bloginfo('template_url', true);
    if(get_option('awpt_jwkey')){$key = get_option('awpt_jwkey');}else{$key = '7lTPCF2LvWYLPfF2COF0CAmrW8vMnodJ4P7OEg';}
    $logoimage = stripslashes(get_option('awpt_jwlogo'));
    $logolink = stripslashes(get_option('awpt_jwlink')); $skin = stripslashes(get_option('awpt_jwskin'));?>
    <script type="text/javascript" src="<?php echo $sefurL; ?>/jwplayer/jw/jwplayer.js" ></script>
    <script type="text/javascript">jwplayer.key="<?php echo $key; ?>";</script>
    <div id="ply">
    <script type="text/javascript">
    var jw = jwplayer("ply").setup({
       file: '<?php echo $video; ?>',
    	image:"<?php echo $src; ?>",
    	flashplayer: "<?php echo $sefurL; ?>/jwplayer/jw/jwplayer.flash.swf",
    	width: "100%",
    	aspectratio: "4:3",
    	startparam: "start",
    	autostart: false,
    	primary: 'html5',
    	logo: {
            file: '<?php echo $logoimage; ?>',
            link: '<?php echo $logolink; ?>',
            position: "right-bottom",
        },
       skin : {
    	url:"<?php echo $sefurL; ?>/jwplayer/jw/skins/<?php echo $skin; ?>.css",
    	name:"<?php echo $skin; ?>"
    	},
    	related: {
          file: "https://localhost/archives/category/action/?feed=related-feed"
       }
       });
       </script>
    </div>

    I dont have a live link because Im testing localy but what I need is only the right feed because the jwplayer code is right, as I said when I put https://content.jwplatform.com/related/C4lp6Dtd.xml its ok but I was looking something to generate the xml wich grabs the wordpress posts and I found your plugin but I dont know what Im doing wrong. There is no feed file generated for my categories.

    Thread Starter awpt

    (@awpt)

    Oh I just typed https://localhost/category/action/?feed=related-feed

    removing the archive and I got this screen
    https://s16.postimg.org/lceql2rph/image.png

    in action category I have 8 posts but I dont see in the feed

    Thread Starter awpt

    (@awpt)

    Finaly Got it working I resaved the permalinks and tried another category https://localhost/category/best-music/?feed=related-feed and everything is fine thankyou verymuch for the plugin Im going to realease my theme and I will suggest your plugin to my clients.

    Have a nice day.

    EDIT:

    Maybe it can help others

    I have used the variable to get the first category name of the post using
    $category_id = get_the_category($post->ID);

    and just added the code to get the right category feed for each post:
    <?php get_category_link( $category_id ); ?>/?feed=related-feed

    Plugin Author ilGhera

    (@ghera74)

    Great awpt, happy to hear that you solved and thanks for using my plugin ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The feed not working’ is closed to new replies.