Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Template tags
Avatar
HoneyBee
Member
Free Members
sp_UserOfflineSmall Offline
May 30, 2012 - 6:40 am

I don't understand php at all. most times I just get by although I've tried to make a bit more sense of it over the past 2 days but getting no where.

 

I downloaded the template tag plugin.   i developed my own wordpress site/theme. i didn't bother making my sidebars widget ready which may explain why after downloading the plugin I cannot see anything else in the wordpress admin area. I was going to try to make it widget ready but for some reason, the way I have done my sidebars it seems all to complicated. Besides which I didn't want the template tags in the sidebars anyways.

 

Apologies for the long explanation but I thought it might be necessary. I've tried to figure out how to show hot topics within the main content but no luck. Can I have some help please?

 

thanks!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 30, 2012 - 9:46 am

sorry, help with what?  several issues there! wink

for widgetizing your theme:  http://automattic.com/code/wid.....ts/themes/

but that is very simplistic and focuses on sidebar.. you can do it anywhere really...  our site here has 4 in the footer too...

show hot topics in main content?  main content of what?  a page?  a post?

you can utilize a template tag in one of two ways...  with an actual php template tag function call or with a wp shortcode... so for the hot topics, you would enter

[sp_hot_topics]

or

sp_HotTopicsTag();

which one you choose is up to you and where you put it...  if you put it in a page or post content, you probably want the shortcode (unless you have a plugin that allows php in content)...  if you are putting it in a theme template file, you probably want the php template tag function call...

hopefully, that helps...  worth noting that if you use the shortcode, there is a bug in the display logic on where it will show up in relation to other content...  that will be fixed in the release tomorrow...

Avatar
HoneyBee
Member
Free Members
sp_UserOfflineSmall Offline
May 30, 2012 - 1:18 pm

Thanks. It was this sp_HotTopicsTag(); I was looking for. Thank you very much

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 30, 2012 - 1:25 pm

good to hear! np, glad to help...

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: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625