Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Featured Posts
Avatar
Marc Wright
Member
Free Members
sp_UserOfflineSmall Offline
Oct 19, 2013 - 5:38 am

Hi,

 

I want to put a featured post widget to my theme. I looked at the codex but dont understand it. I want my featured posts to look similar, with avatars like your "Recent Forum Posts" layout below.

 

Can you send me the shortcode?

 

Thx

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Oct 19, 2013 - 10:58 am
you will want the template tags plugin available on our plugins download page… it include numerous template functions for latest posts and a widget for recent posts…

see: http://codex.simple-press.com/…..gs-plugin/

Once installed there will be a widget you can add and select the different options.

Avatar
Marc Wright
Member
Free Members
sp_UserOfflineSmall Offline
Oct 20, 2013 - 2:16 pm

Hi,

 

Thanks for that,

 

However the widget is just for recent posts, i am looking for one for featured posts. I put the shortcode into a widget ... [sp_featured_topics] , however this does not show the avatar. How can i edit this to show the avatar?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 20, 2013 - 6:08 pm

you said you wanted featured posts, but you used the shortcode for featured topics... if want featured posts as you indicate, then use [sp_featured_posts]

and see:  http://codex.simple-press.com/codex/plugins/our-plugins/available-plugins/plugin-featured-topics/

for arguments like an avatar that you can use...  just remember when used in a shortcode, you cannot use camel case...

Avatar
Marc Wright
Member
Free Members
sp_UserOfflineSmall Offline
Oct 21, 2013 - 6:02 am

Hi

I put this shortcode [sp_featured_topics] in my widget, it does not show the featured post after i go to the frontend as admin and click on the "feature post" in the toolset. Then it says "invalid database query"

 

I am in the dark here..

 

Thanks

Avatar
Marc Wright
Member
Free Members
sp_UserOfflineSmall Offline
Oct 21, 2013 - 6:08 am

Ive used [sp_featured_topics] and [sp_featured_posts]

 

Would you be adle to give me an example of the code i should put in my widget. Ive looked at the codex,  I have put 

<?php sp_FeaturedPostsTag(

'itemOrder=FTAUD&&limit=10&afterDate=<hr/>'

);?> in my widget and noting shows up.
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 21, 2013 - 10:39 am

it works better if you use the code button... I cannot read what you are doing there...

what is the db query error?  would be most helpful...

and you need to make up your mind if you are talking about featured topics or posts...  they are two different things...

have you actually identified some posts to used as featured posts?

Avatar
Marc Wright
Member
Free Members
sp_UserOfflineSmall Offline
Oct 21, 2013 - 12:32 pm

Hi,

 

I got it to work, it was putting a "," infront of the post number.  However im using the shortcode and the default does not have avatar. Im using [sp_featured_posts] . My question is what must i add to this short code to show the avatar. Can u post the short code for me. Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 21, 2013 - 3:34 pm

I pointed you to the instructions earlier:  http://codex.simple-press.com/.....ed-topics/

so use itemorder...  something like

[sp_featured_posts itemorder="AFTUD"]

Avatar
Marc Wright
Member
Free Members
sp_UserOfflineSmall Offline
Oct 22, 2013 - 7:25 am

Thanks.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625