WP Plugin: Where did they go from here?
Thanks for visiting! If you're new here, you may want to subscribe to our RSS feed. This blog posts regular Wordpress news, updates of themes, plugins, ideas, hacks, quick fixes and everything about blogging, especially about Wordpress. Go ahead, subscribe to our feed! You can also receive updates from this blog via email.
If you have been paying attention to Amazon’s single product pages and if Amazon’s engineers have been doing their job well, you have most likely clicked on one of the links in the group of deep links called “Customers who bought this item also bought”.
This plugin tries to create a similar group of links for your blog. If you have enough links in your theme (Contextual Related Posts plugin comes in handy) for readers to explore, then as and when readers click on links, this plugin checks to see if it was referred from your blog, checks to see if it can identify a post or a page from the information it has and then adds a link to the referring page. I have been testing it on this blog for a few days while I iron out the bugs. Check out the pages and what grabs readers’ attention on various pages and posts.
Installation is very simple, just download, unzip, upload and activate. The plugin should automatically add the list to the bottom of every single page right before the comment form. Please refer to the plugin file for troubleshooting hints. Future development plans include an admin page to control the number of links, autoplacement etc.
Please let us know if you are using the plugin and whether you like it. Bugs should be posted here.
[EDIT] I have noticed a bug on some blogs and the following might be a quick fix. If your footer.php template file does not have the correct “actions” described, you will notice that the links are not generated and the N/A stays on the post. Take a look at the default footer.php in the wordpress theme folder and make sure the wp_footer() function is in your footer template. Basically, it needs to have the following line right before the close of the body and html tags.
<?php wp_footer(); ?>
New Version 1.3
Download Where did they go from here? v1.3


(16 votes, average: 4.06 out of 5)










Comments RSS
[...] Source:Weblog Tools Collection If you have been paying attention to Amazon’s single product pages and if Amazon’s engineers have been doing their job well, you have most likely clicked on one of the links in the group of deep links called “Customers who bought this item also bought”. This plugin tries to create a similar group of links […] Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages. [...]
Hi Mark, sounds like a good idea. I am using this plugin but have 2 questions about it
1. How much time it takes to show up the link.
2. I have removed hook added at the end ( that makes it appear just before commenents) and called the funcion instead. Doest it affect ?
I like this idea. I’ma try it out on my site.
Just testing this out on Sciencebase, I’m just seeing N/A at the moment, but hopefully as visitors come and go it will begin to populate, there are 1000+ posts on that site to choose from so, hopefully…soon……
db
Hi,
after activating the plugin I get under the line: Readers who viewed this page, also viewed: a little sign and N/A
something went wrong ???
Greetings
Klaus
[...] The plugin is located here: where-did-they-go-from-here [...]
Somehow it only appears on my single.php but not on index.php… Do you give me any advice how I can fix that? Thanks
@Mark: I tried clicking some of the related links and re check it again. No links appear. Seems like it takes time. I will test it for a day and Will tell you if it works
Ok, I’ve found how to add that plugin to index page as well but now I can’t find how to add Contextual Related Posts plugin to index page LOL
Inga, none of these plugins are meant or coded to be displayed on the front page. Doing so might break things and/or confuse your readers.
@Mark: oh… I see, ok, then I go and remove it from index.php better… Thanks.
@Mark : Is there any restriction that it works with your Contextual Related Posts plugin. The wp_footer function is called in my theme
If my host lets me activate plugin,i will try it.
It looks awesome.I must use it.
What would be really sweet is a mod that would coordinate the “related posts” and “also read” posts so they don’t overlap. I would guess that people are very likely to click on the “related posts” at the end, which would also put the post on the “also read” list more times than not. E.g. above, where the Jabberbot plugin post made it onto both lists. With a little tweaking, I would think someone could make the plugin look for overlapping posts and omit them from one list or the other.
Great idea for a plugin, btw. Seems that it would be great for increasing page views within a site/blog.
It looks great. thanks
@Mark: Thanks for the update. I will be testing it for a complete day and lets see if it works. Will update you here
can’t get it to work… what did i missed?
Huh. I thought the title of this post actually referred to a story about where certain plugin authors went (e.g. started out writing plugins and look where they ended up!!).
Guess I should pay more attention next time.
Doesn’t seem to work on my site.
I manually removed the hook in the plugin file and added the show_where_they_go call to my comments.php but the links don’t show up.
How do you move it up to where you have it? Right now it shows up underneath where a reader would comment on my blog.
I just installed this plugin and like Ian, I get the list between the comment box and the submit button. How do we customize it to have it display in a specific part of a post? Thanks!
I agree with Ian: how did you have it appear at the top? My related entries are before my comments, and that would be the perfect place to put them.
Same question as Jaypee and lan … it shows under the comment entry. How do I move it up, just under the article ?
Remove the following line from the plugin:
add_action(’comment_form’,’show_where_they_go’);
Add the following line to your single.php where you want the list to display:
<?php wp_footer(); ?>
@Mark:
I tried it, and it didn’t work. It gave me a WP error, or it would show footer stuff in the wrong location.
But I did find a way. I change it around in:
add_action('comment_form','show_where_they_go');… to:
add_action('show_where_they_go','comment_form');And then, I added the php string, as indicated in the plugin file, to the exact location I wanted in my single.php template:
That works because the add_action is backwards in your case. Just remove that line and it should have the same effect. Glad you got it working!
Thanks Mark! It’s now working perfectly on my blog.
What I did was:
1. Remove this line from the plugin file - add_action(’wp_footer’,'add_wherego_count’);
2. Copy this line of code to where I want it to be displayed -
I removed both the hooks, Add the hook add_action(’wp_footer’,’add_wherego_count’); to where I want to display….doesnt work still
[...] http://feeds.feedburner.com/weblogtoolscollection/UXMP info: Weblog Tools Blogging Tools Blog - WP Plugin: Where did they go from here? WP Plugin: Where did they go from here? Wordpress Plugin Competition [...]
[...] Find out where your readers went (within your blog at least) with this cool plugin: Where did they go from here? [...]
Well, I actually read your instruction in the php file, and those worked. I also commented out the add_action(’comment_form’,’show_where_they_go’); part.
Now it shows, but it seems to always be N/A … I guess it takes some time to change …
Sounds like a great plug in (found this off of Digg). Thanks for sharing!
Please, move the “Readers who viewed this page” inside the if block that follows.
I can provide the trivial patch on request.
Thanks
I installed and activated, but nothing happens. I like the idea though.
Ohhhh I get it… This only works if comments are enabled. I wonder how to change this to make it work with comments disabled.
I’m getting this error;
Warning: unserialize() expects parameter 1 to be string, array given in /home/mydomain/wp-content/plugins/wheredidtheygov1.php on line 63
Can you help me Mark?
Thanks.
Please let me know if that works.
The plugins still says it’s Version: 1.2
So, is it better to even if I didn’t see any errors with previous one?
Gosh, part of my comment was gone :-S The question was: is it better to upload new version now even if I didn’t see any errors with previous one?
Inga, it would probably make sense to upload the new one since the bug might have caused some problems.
Also translated this one, contact me if you want the file
I did what you recommend in comment #28 but still getting similar error at the bottom of the page:
Warning: unserialize() expects parameter 1 to be string, array given in /home/myURL/wp-content/plugins/wheredidtheygov1.php on line 64
This is fun. Thanks.
Still seeing the N/A on Sciencebase.com with this plugin, even after rendering the suggested patch, I was hoping to blog about it and trackback here with my success story, but unfortunately that will have to wait till someone suggests another fix…
db
[...] just started using this “Where did they go” plugin for Wordpress: it works but I wrote a simple patch for it as previously described here. The A simple patch for [...]
[...] more stats and more attention from blog readers. I already have installed them both on this blog. WP Plugin: Where did they go from here? - This plugin tries to create a similar group of links for your blog. If you have enough links in [...]
I’ve just let on
http://perassi.org/2007/06/06/a-simple-patch-for-where-did-they-go-plugin/
a simple patch for the users that don’t want to see the “N/A” that appears when $lpids is 0
Now is OK, but I can’t place the list of article where I want. If I call
and delete the line you said get an error.This looks good to have. I have been running Auction Ads for some time and have wanted to include Amazon on the site too. I shall give it a try!
[...] mycket intressant WordPress plugin med namnet Where did they go from here? har släppts av Weblog Tools Collection. If you have been paying attention to Amazon’s single [...]
This Plugin is a great idea and works nicely for me.
The default installation didn’t mesh well with my theme so I did the following:
1) commented out the this line in the plugin:
add_action(’comment_form’,’show_where_they_go’);
2) added this function call to my single.php file:
show_where_they_go();
That allowed me to place the list wherever I wanted without having to worry about my severely hacked footer getting in the way of things.
[...] haven’t already grabbed it, download and install a Related Posts plugin and then install the Where Did They Go From Here [...]
I’m interested, but I’m worried about a couple things:
1) How much database bloat will this cause if I install it, and where’s the data stored? A unique table that I can easily clear out, or a new field in the posts table?
2) Does it track both inbound and outbound views? (In other words, when a visitor clicks from page A to page B, do both page A and B show the relationship?)
3) Does it use a cookie to determine page relationships over time so that if I visit page A on Monday then return to visit page C the next week, will it register a relationship? Or is it only tracking referrers from within my site?
Looks interesting, but if it’s only going to show people the links that already exist on-page, then it’s information overload.
Rich
BlogRodent
[...] exam time, I’ve made a couple of subtle changes to my site, mostly in the form of adding cool plugins and hacking them. The main changes are: you’ll see that little sidebar on a lot of [...]
[...] Si es la primera vez que nos visitas, te puedes suscribir a nuestro feed RSS aqui. Gracias por tu visita![Entrada traducida. Original] [...]
Hi:
I’m having the following error message at the end of the blog:
“Fatal error: Call to undefined function: attribute_escape() in /home/.august/ultrapodcaster/ultrapodcaster.com/wp-content/plugins/wheredidtheygov1.php on line 49″
Any ideas? Thanks! I’m using WP 2.0.2
[...] 如果有注æ„过亚马逊(国内是å“越网)å•一产å“页é¢ä¸‹é¢ï¼Œä½ 就会å‘现在æ¯ä¸ªå•†å“䏋颿œ‰ï¼šæŸ¥çœ‹æ¤å•†å“的顾客也查看了,这里显示了一组查看过æ¤å•†å“çš„é¡¾å®¢åŒæ—¶æŸ¥çœ‹è¿‡çš„别的商å“的链接,记录读者的访问记录,这是éžå¸¸å¥½çš„ä¸€ä¸ªå¢žåŠ åšå®¢çš„粘性的éžå¸¸çš„æ–¹æ³•ï¼Œé‚£ä¹ˆæ€Žä¹ˆå®žçŽ°å‘¢ï¼Ÿä½ å¯ä»¥ä½¿ç”¨è¿™ä¸ªæ’件:Where did they go from。这个æ’件安装éžå¸¸ç®€å•ï¼Œä¸‹è½½ï¼Œä¸Šä¼ åˆ°ä½ çš„æ’件文件,激活之åŽï¼Œä¸€æ®µæ—¶é—´ï¼ˆå‡ ä¸ªå°æ—¶æˆ–è€…å‡ å¤©ï¼Œçœ‹ä½ çš„åšå®¢çš„点击é‡ï¼‰ä¹‹åŽï¼Œå®ƒå°±ä¼šåœ¨ç•™è¨€æ¡†å‰æ˜¾ç¤ºè¯»è€…æµè§ˆè®°å½•ï¼ˆåŽŸä½œè€…æ˜¯è¿™æ ·è¯´çš„ï¼Œä½†æ˜¯æˆ‘å®‰è£…ä¹‹åŽæ˜¾ç¤ºåœ¨ç•™è¨€æ¡†åŽé¢ï¼‰ã€‚å¦‚æžœä½ æƒ³è‡ªå·±å®šä¹‰ä»–å‡ºçŽ°çš„ä½ç½®ï¼Œä½ å¯ä»¥æŠŠ add_action(’comment_form’,’show_where_they_go’); 注释掉,然åŽåœ¨ä½ 想显示地方(一般我喜欢把它放在 single.php æ–‡ç« çš„åŽé¢ï¼‰è¾“入以下代ç : 。å¦å¤–默认情况下它最多显示5ç¯‡æ—¥å¿—ï¼Œä½ å¯ä»¥ä¿®æ”¹æ’件文件ä¸çš„ $maxLinks 这个å˜é‡ä¸ºä½ 想è¦çš„æ•°å—。 [...]
[...] 以下æ’件始终ä¸èƒ½ç”¨ï¼Œ Extended Live Archives,改掉archives模æ¿å†å†™å‡ºçš„页é¢ï¼Œæ€Žä¹ˆä¹Ÿå‡ºä¸æ¥ELA的东西。 Gravatar,æ¢äº†ä¸€ä¸ªä¸»é¢˜ï¼ŒæŠŠcsså’Œcomment.phpå·²ç»æ”¹äº†ï¼Œå¯è¿˜æ˜¯å‡ºä¸æ¥å¤´åƒã€‚ Emotions,也是æ¢äº†ä¸»é¢˜å°±å‡ºä¸æ¥äº†ã€‚改æ»comments.php没å应。 Where did they go from here,这个就更æ¶å¿ƒäº†ï¼Œè€æ˜¯N/A显示在下é¢ï¼Œæœäº†è§£å†³æ–¹æ³•改了footer也ä¸è¡Œã€‚ [...]
[...] Where did they go from here? Tai truputį kitoks nei kiti Äia pristatomi įskiepiai. PagrindinÄ— jo užduotis - kiekviename straipsnyje registruoti į kuriuos puslapius perÄ—jo skaitytojai ir pateikti penkių dažniausiai aplankytų puslapių sÄ…rašą. Ä®skiepis dar labai jaunas, todÄ—l turi daug trÅ«kumų. [...]
[...] 我å‰é¢å†™è¿‡ä¸€ç¯‡å…³äºŽå¦‚ä½•å¢žåŠ ä½ åšå®¢ç²˜æ€§çš„æ—¥å¿—ï¼Œå…¶ä¸æåˆ°äº†ä¸‰ä¸ªæ’件:Where did they go from,Contextual Related Posts å’Œ Random Postsï¼Œå®ƒä»¬åˆ†åˆ«ç”¨äºŽè®°å½•è¯»è€…åœ¨ä½ ç½‘ç«™ä¸Šçš„æµè§ˆè®°å½•ï¼Œæ˜¾ç¤ºç›¸å…³æ—¥å¿—å’Œæ˜¾ç¤ºéšæœºæ—¥å¿—。很多阅读过这篇日志的人也去安装了这三个æ’件,ä¸çŸ¥é“是å¦å¢žåŠ äº†å®ƒä»¬åšå®¢çš„粘性(有人说粘性这个è¯è®©ä»–æƒ³åˆ°äº†ç”µå½±å¼‚æ€§ï¼Œæˆ‘å¯¹æ¤æ— è¯ï¼ï¼‰ã€‚但是还是有些读者安装时候碰到了些问题,于是我想这三个æ’ä»¶åœ¨å¢žåŠ ç½‘ç«™çš„ç²˜æ€§éƒ½åšçš„ä¸é”™ï¼Œä¸å¦‚把这三个æ’ä»¶æ•´åˆåœ¨ä¸€èµ·ï¼Œå¹¶ä¸”把åå—åŽ»åš WP-Stickinessã€‚å½“ç„¶äº†ï¼Œå¦‚æžœä½ ä¸è®¤åŒï¼Œä½ 完全å¯ä»¥è®¤ä¸ºè¿™å¹¶ä¸æ˜¯ä¸€ä¸ªæ’件,但是我制作它完全是为了能够让大家能够方便使用。 [...]
Cool plug-in, thanks. I use it on my site but have modified your code so that the header and links appear only when there is something to link to. IMHO, there is no need for an “else” statement. Take a look:
if ($lpids) {
echo "Readers who viewed this page, also viewed:";
foreach ($lpids as $lpid) {
echo '‘.get_the_title($lpid).’‘;
}
echo “”;
}
You might think about doing this for your next patch release of the plug-in.
[...] ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Where did they go from??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? add_action(’comment_form’,’show_where_they_go’); ??????????????????????? single.php ????????????? <?php if (function_exists(’show_where_they_go’)) show_where_they_go(); ?>?????????????5??????????????? $maxLinks ???????????? [...]
[...] ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Where did they go from??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? add_action(’comment_form’,’show_where_they_go’); ??????????????????????? single.php ????????????? <?php if (function_exists(’show_where_they_go’)) show_where_they_go(); ?>?????????????5??????????????? $maxLinks ???????????? [...]
[...] Where did they go from here? [...]
Hey! its a very cool plugin, but it doesnt run on my blog
i have already checked this thing with the footer … everything is allright. some error should occur in the add_wherego_count() function, because it doesnt even wright the meta to the post. i’ve tried to echo the $id = $post->ID but it returns an empty value. $matchvar returns 1.
please help ^^
i’m getting N/A all the time.
checked my footer… that seems to be ok.
Any further ideas?
This Plugin sounds nice, but it does not work in my wordpress. I checked footer. I added a debug-message in the function add_wherego_count. The message is written in the blog, so the function had started, but it makes no entries in the database. Any suggestions?
Ok, my error_reporting was switched off. Now I can see, whats the problem: I have to update my wordpress because a function is not defined.
[...] Here is a perfect example of why I love plugin developers! Weblog Tools Collection has released a new plugin that should help you really increase the stickiness of your site: Where did they go from here? [...]
[...] Where Did They Go From Here: Works with related posts to show where other readers went after reading the current post. Useful for you to track visitor behaviour, and a useful way of showing the reader further posts of interest. [...]
[...] ?????“?????”?Where did they go from?Contextual Related Posts ? Random Posts??????????????????????????????????????????????????????? [...]
[...] 217) Where did they go from here? [...]
Great Plugin! … and I got it to work, but I had to make a code change to a line that seems to have a typo.
I downloaded ver1.3 from the link above and it wouldn’t store anything in the db. always said N/A.
changed
$sitevar = str_replace("/","\/",$sitevar);to$sitevar = str_replace("/","",$sitevar);and it started working.I’m confused as to how it ever worked for other people, but happy that it works for me now.
[...] For more information and to download it visit: Where Did They Go From Here [...]
[...] ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Where did they go from???????????????????????????%E [...]
[...] ???????????????????????????????????????????????????????????????????????????????????????????????????????????????Where did they go from???????????Contextual Related Posts?????????? Random Post??????????????????????????????????????????????????????????????????? ?????? ??????????????????????????????????????????????????? WordPress ?????????????????? Cookies ?????????????????????????"Welcome back, user!" WordPress tip????????????????????????????? Who See Ad??????????????????? [...]
[...] 227 Where did they go from here? [...]
mmm…This is strange.
The plugin was working beautifully until last year.
But data is not being updated since Jan 1st 2008.
Does anybody have a fix to this?
Oh, by the way one specific post appears for all the entry since Jan 1st.
Would really appreciate any suggestions.
Thanks
[...] ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Where did they go from??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? add_action(’comment_form’,’show_where_they_go’); ??????????????????????? single.php ????????????? <?php if (function_exists(’show_where_they_go’)) show_where_they_go(); ?>?????????????5??????????????? $maxLinks ???????????? [...]
[...] Where did they go from here? : Proposer une liste de liens comme : Visiteurs qui ont regardé cet article, ont également consultés (liste d’articles). [...]
[...] in the first place. Every site that refers you here, every post you click on, every page you visit, every link you follow, every comment you make, every post you rate and every search you perform is recorded and is used [...]
[...] ??????.???????Where did they go from.?????????????????.??????????:????: [...]
Thank you for this pretty good plugin!
But i get a problem, that is it occurs below the comments form…
So, i made some change of your plugin~~
This plugin is pretty good!
But i got a problem, that is it appears below the comment form…
So i made some changes to make it running well.
[...] Emotions???????????????comments.php???? Where did they go from here???????????N/A??????????????footer???? [...]