linwilvic
Forum Replies Created
-
I definitely will. Thanks David.
Hey David,
is there a donation link for Nelio Content? I am considering using “Nelio Content Personal” in the future, but for now, I would like to donate.Thanks
LincolnHi David,
I just want to take this time so thanks you for helping me fix this problem. You are awesome. It is finally working!!! I am using a child-theme and I trid copying that file over but that didn’t work. But no worries, I have that code stored in a safe place for whenever the theme gets updated.Once again, Thanks so much for you help.
Lincoln
When I reached out to the developer of the theme, This is what he said,
“When adding track to playlist, the playlist will use the track thumbnail id. the code is in includes/class-ff-music.php line 83-84”
$thumbnail = get_post_thumbnail_id( $post_id ); set_post_thumbnail($id, $thumbnail);I also believe that this template is being used for the featured images.
/templates/loop/list-music.php
Hi David, so right now everything is working except when I tried to add playlist. I crated an account for you and send the credentials to your email if you would like to take a look. http://app2.wlojii.com/wp-login.php
So basically, when you click on a track to add to playlist, https://drive.google.com/open?id=0BwjoDy2PwkrxdUllbXJTRmYxQW8
A thumbnail is supposed to show up like this:
https://drive.google.com/open?id=0BwjoDy2PwkrxdHpZMFFwY3ZFcjAWith the normal Featured Image, It works. But with Nelio, it doesn’t. Everthing else work. The main custom post type is call “Tracks” fYI.
Ok
Hi David,
Thanks for deciding to look into this. I just send you an email with a google drive link to the file.Thanks
Hello David,
Sorry for all the post but this is what I finally got from the developer of the themes.When adding track to playlist, the playlist will use the track thumbnail id. the code is in includes/class-ff-music.php line 83-84
$thumbnail = get_post_thumbnail_id( $post_id ); set_post_thumbnail($id, $thumbnail);Do you think I need to add something in that code for Nelio featured Image to work?
I also found this. Not sure if it matters but I figured I post it.
// get post thumbnail function ff_get_post_thumbnail($post_id, $size = 'thumbnail', $src = true){ $img = ''; if(!$src){ return the_post_thumbnail(); } $thumbnail_id = get_post_thumbnail_id( $post_id ); if( !empty( $thumbnail_id ) ){ $img = wp_get_attachment_image_url( $thumbnail_id, $size ); }else{ $img = get_post_meta($post_id, 'cover', true); } return $img; }External featured image works as it should. The only place it doesn’t work is when I tried to add a music tracks to a playlist. Apparently the playlist is not showing the url.
I believe that this is how the playlist is trying to find the image.
<a href="#"> <img width="40" src="." alt="." /> </a>Also I believe that this is the code that in used for the featured images.
<?php $image = wp_get_attachment_image_url( get_post_thumbnail_id(), $media_size ); ?> <a href="<?php the_permalink(); ?>" class="item-media-content" style="background-image: url(<?php echo esc_url( $image ); ?>);"></a>- This reply was modified 9 years, 2 months ago by linwilvic.
Hi David, so right now, Its a custom post, just like a regular post except that it has a place to put some music information (.mp3 etc.) for the images, it is using the Featured Image to display thumbnails. When I use The Nelio Content plugin, The External featured image works as it should. The only place it doesn’t work is when I tried to add a music tracks to a playlist. Apparently the playlist is not showing the url.
I believe that this is how the playlist is trying to find the image.
<a href="#"> <img width="40" src="." alt="." /> </a>Also I believe that this is the code that in used for the featured images.
`
<div class=”item-media <?php echo esc_attr( $media_class ); ?>”>
<?php $image = wp_get_attachment_image_url( get_post_thumbnail_id(), $media_size ); ?><a>” class=”item-media-content” style=”background-image: url(<?php echo esc_url( $image ); ?>);”></a>
</div>`Hey Ennyoh, can you please let me know what other plugin you are using? I like WordApp but the lack of communication is not working to well for me. Can’t get a sample question answered via email.