Support Forum

Template Tags and Widgets

AM Anosua Mukhopadhyay
Anosua Mukhopadhyay
Member

I just downloaded this plugin, installed it, and now can’t find any documentation on how to use it. Where the list of template tags are and how to make these widgets show up.

Can someone guide me in the right direction? Thanks.

7 Answers

New Answer

MP Mr Papa
Mr Papa
Member

its all in the codex: http://codex.simple-press.com/codex/plugins/our-plugins/the-template-tags-plugin/

AM Anosua Mukhopadhyay
Anosua Mukhopadhyay
Member

Fantastic, thank you! Is there any code I can add that would display a truncated bit of each post listed?

MP Mr Papa
Mr Papa
Member

these tags are part of that plugin:

http://codex.simple-press.com/codex/plugins/our-plugins/the-template-tags-plugin/template-tag-recent-posts/

http://codex.simple-press.com/codex/plugins/our-plugins/the-template-tags-plugin/template-tag-latest-posts/

http://codex.simple-press.com/codex/plugins/our-plugins/the-template-tags-plugin/template-tag-newest-topics/

http://codex.simple-press.com/codex/plugins/our-plugins/the-template-tags-plugin/template-tag-todays-posts/

and a widget too:

http://codex.simple-press.com/codex/plugins/our-plugins/the-template-tags-plugin/recent-posts-widget/

AM Anosua Mukhopadhyay
Anosua Mukhopadhyay
Member

I now see that and am going with “sp_RecentPostsTag”. It displays the forum post, title, author, but I’m wondering if I can somehow also access the content within each post that’s listed? It doesn’t seem to be a parameter, but do you know the start of some code I could add in that would do that?

MP Mr Papa
Mr Papa
Member

the code excerpt is in the tooltip… what you see when you hover over the link to the topic/post..

I dont think any of them actually force display the topic/post content – no one has asked for that frankly…

but its possible, using the hooks and api, to grab the post content too… would take a bit of coding and familiarity with wp hooks…  are you able to do so?  we can help guide you… 

AM Anosua Mukhopadhyay
Anosua Mukhopadhyay
Member

I think I could do it with a bit of guidance. :)

MP Mr Papa
Mr Papa
Member

actually, I think I am wrong…  not going to be easy to do with hooks… looks like we dont have a hook in place for each entry in the list, just on the whole list…  could be done, but would be quite messy and complex… I will open a ticket for future consideration about each item, but wont help now…

My suggestion would be to make a copy of the plugin and make it your own…  then we can edit it to output a snippet…  so get it set up for that and we can help…