Support Forum

Featured Posts

MW Marc Wright
Marc Wright
Member

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

10 Answers

New Answer

BR Brandon
Brandon
Member
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.

MW Marc Wright
Marc Wright
Member

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?

MP Mr Papa
Mr Papa
Member

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…

MW Marc Wright
Marc Wright
Member

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

MW Marc Wright
Marc Wright
Member

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.
MP Mr Papa
Mr Papa
Member

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?

MW Marc Wright
Marc Wright
Member

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

MP Mr Papa
Mr Papa
Member

I pointed you to the instructions earlier:  http://codex.simple-press.com/codex/plugins/our-plugins/available-plugins/plugin-featured-topics/

so use itemorder…  something like

[sp_featured_posts itemorder=”AFTUD”]