This forum is now read-only. Support is provided at https://wordpress.org/support/plugin/sermon-browser/
11:37 pm
22 May, 2011
Hi Sermon Browser team,
I have a static page that I am currently testing with wordpress installed in a different directory. I've been able to add the latest sermon with the following code on my page.
<?php require('../content/wp-blog-header.php'); ?>
<?php if (function_exists('sb_display_sermons')) sb_display_sermons(array('display_preacher' => 1, 'display_passage' => 0, 'display_date' => 0, 'display_player' => 0, 'display_download' => 1, 'preacher' => 0, 'limit' => 1, 'url_only' => 0)) ?>
By loading wp-blog-header.php I've been able to access wordpress and it's plugins and utilise them.
My page is http://testing.doncastercitychurch.com. If you go there you'll see that under latest message it displays the title and preacher of the latest message but I'm having trouble getting a download link to work. I assumed I'd just add display_download into the array but I can't quite get the code to work.
Could someone help me? All I want is a link to the latest mp3 file to download on our homepage. I'd also like people to click on the download text, not have some png icon to click on.
Can someone help me?
Cheers,
Ben
1 Guest(s)