Podcast Documents
Support Area › Forums › Kerygma › Podcast Documents
- This topic has 1 reply, 2 voices, and was last updated 9 years, 3 months ago by Bill Robbins.
-
AuthorPosts
-
December 15, 2014 at 11:05 #24911Kevin HuntsingerParticipant
Quick question on a need. Is there a way to have multiple documents to download. Example: We have sermon notes as well as notes for our CARE Groups (home groups) to go over?
December 15, 2014 at 12:44 #24919Bill RobbinsModeratorHey Kevin,
Great question. There are a couple of ways you can do that. The simplest option is to add the second file to download as a link in the podcast’s content area. Your readers can get to the link without needing any edits.
The next option is to edit the theme. Here’s how to do that:
- Go to the Appearance section in your WordPress dashboard and choose Edit.
- From the list of files on your right, choose podcast-item.php and scroll down until you see this section:
<?php if ( get_post_meta($post->ID, "message_notes", $single = true ) != "" ) { ?> <a class="notes" download="<?php the_title(); ?>" href="<?php echo get_post_meta($post->ID, "message_notes", TRUE); ?>" download="<?php the_title(); ?>"><span class="icon-helper"><?php _e( 'Notes', 'organizedthemes' ); ?></span></a> <?php } ?>
- Right below that add this:
<?php if ( get_post_meta($post->ID, "message_notes2", $single = true ) != "" ) { ?> <a class="notes" download="<?php the_title(); ?>" href="<?php echo get_post_meta($post->ID, "message_notes2", TRUE); ?>" download="<?php the_title(); ?>"><span class="icon-helper"><?php _e( 'CARE Notes', 'organizedthemes' ); ?></span></a> <?php } ?>
- Save your changes and then edit the single-podcast.php file and find this section:
<?php if ( get_post_meta($post->ID, "message_notes", $single = true ) != "" ) : ?> <a class="download-notes" download="<?php the_title(); ?>" href="<?php echo get_post_meta(get_the_ID(), 'message_notes', TRUE); ?>"><?php _e( 'Notes', 'organizedthemes' ); ?></a> <?php endif; ?>
- Right below that add this:
<?php if ( get_post_meta($post->ID, "message_notes2", $single = true ) != "" ) : ?> <a class="download-notes" download="<?php the_title(); ?>" href="<?php echo get_post_meta(get_the_ID(), 'message_notes2', TRUE); ?>"><?php _e( 'CARE Notes', 'organizedthemes' ); ?></a> <?php endif; ?>
and save your changes.
That will take care of the theme edits. Now when you’re working with a podcast, click on the screen options tab in the top right hand corner. Make sure the box by Custom Fields is checked. Now look below the main content box for the custom fields section. In the spot on your left, enter this:
message_notes2
and in the box on the right, enter the URL to the notes file. You can get the URL to that file in the media library.
Once you update your podcast, the new link should hopefully be there.
If you have any trouble, let me know.
Thanks,
Bill -
AuthorPosts
- The topic ‘Podcast Documents’ is closed to new replies.