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
Recent Posts Widget
Avatar
Chris Hustad
Member
Free Members
sp_UserOfflineSmall Offline
Aug 15, 2013 - 11:19 pm

On the recent posts widget by default, the topic title links to the most recent comment in the post itself.

Is there any way to just have it display just the topic itself?  I'm assuming this will be much better for SEO purposes.

Thanks!

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Aug 16, 2013 - 12:33 am

There isn't an option to display the whole post. If it were to display the whole topic it would take up a lot of room on a page or sidebar.  In most cases that would mean you would only be able to show one or two.

SEO wise you are probably better off with more internal links so the bots go to them and index.

The most important thing though is what would keep your users on the site and get you more pageviews? Google Analytics and webmaster will see what pages are viewed the most and take that into account too.

Avatar
Chris Hustad
Member
Free Members
sp_UserOfflineSmall Offline
Aug 16, 2013 - 8:29 pm

I'm sorry, I think you misunderstood and I should've explained better.

Currently it links to: http://www.somesite.com/forum/.....-topic/#p2

Where I want it linked to: http://www.somesite.com/forum/.....est-topic/

(removing the #p2 or whatever link to the internal comment)

 

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Aug 16, 2013 - 9:03 pm

What you want then is not the recent posts but recent topics.

There is no widget for that but there is a template tag included in that same plugin.

Take a look at the info on http://codex.simple-press.com/.....st-topics/ and it will show you how you can use by using php or a shortcode.

 

Avatar
Chris Hustad
Member
Free Members
sp_UserOfflineSmall Offline
Aug 16, 2013 - 9:59 pm

Thank you

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 16, 2013 - 10:34 pm

glad we could help!

Avatar
Chris Hustad
Member
Free Members
sp_UserOfflineSmall Offline
Aug 19, 2013 - 1:45 am

Brandon C said
What you want then is not the recent posts but recent topics.

There is no widget for that but there is a template tag included in that same plugin.

Take a look at the info on http://codex.simple-press.com/.....st-topics/ and it will show you how you can use by using php or a shortcode.

 

I went in and added <?php sp_NewestTopicsTag();?> into a widget (added php capability) and it displays exactly as the recent posts widget.  It links to the latest post inside the topic, NOT the topic URL itself.

All I want is a list of the latest 10 topics from the forum, linked to the topic URL.  Can I be a pain and ask for a little php help in accomplishing this?

Thanks,

Chris

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 19, 2013 - 2:07 am

you are going to have to be more specific.... keep in mind that a topic contains posts... so its more natural to link to a post in the topic... so if you have 15 pages of posts in the topic, where do you want to link to??? the very first page?? which is how I would interpret what you are saying... the last post? the last page?

and for the record, the newest topics and recent post do different things... the recent posts returns the most recent posts irregardless of the topic - so you may get multiple posts in the same topic... the recent topics, return the most recent topics with an update... so if you have more than one recent post in a topic (within your specified limit), you will get quite different results... of course, its possible they will return the same list too... yes, the recent posts links to the specific post... the recent topics links to the last post in the topic because thats where everyone wants to go - read the latest...

so depending on how you answer my questions, we may or may not have something built in to do what you specifically want...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 19, 2013 - 2:14 am

sorry, wanted to add one more thing... you say latest 10 topics... what do you define as latest... the newest topics template tag will can give the 10 latest topics in the forum... latest being defined as a topics with the latest post whether first, 5th, 10th or whatever... the link will be to that latest post in the topic... which will still be the normal full list of posts for that page...

Avatar
Chris Hustad
Member
Free Members
sp_UserOfflineSmall Offline
Aug 19, 2013 - 2:16 am

Yes, I want the newest 10 topics.

If there are, say, 5 pages of posts I still want it to link to the first page (original topic URL).

I hope I make sense. :-)

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