Forum

This forum is now read-only. Support is provided at https://wordpress.org/support/plugin/sermon-browser/

Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
Generate download url on static page
8 December, 2014
11:37 pm
benperrin
Melbourne, Australia
Member
Members
Forum Posts: 7
Member Since:
22 May, 2011
sp_UserOfflineSmall Offline

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

17 December, 2014
4:43 am
benperrin
Melbourne, Australia
Member
Members
Forum Posts: 7
Member Since:
22 May, 2011
sp_UserOfflineSmall Offline

Can anyone help me on this?

I'll add that the array is in the frontend.php file. I've figured that part out at least. Or is it easier to create some sort of mysql query to find the latest version of all these files?

I hope all of this makes sense.

Cheers,
Ben

Forum Timezone: Europe/London
Most Users Ever Online: 381
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Rich Brown: 358
Matt Schlueter: 93
Mindy: 72
Don Johnson: 65
anointed: 57
0be1: 55
Member Stats:
Guest Posters: 7
Members: 3188
Moderators: 1
Admins: 1
Forum Stats:
Groups: 1
Forums: 2
Topics: 1713
Posts: 7499
Newest Members:
marktest, deatles50, ValeriaGoodriz, dapedPup, oapedPup, Margarettoimb
Moderators: Ben Miller: 1628
Administrators: Mark Barnes: 435