Hi, we are building a link site and we want to show for example most popular links. Would this kind of list based on click statistics be possible with Toolset or should I start with some other plugin – what would be your recommendation?
I'm not really sure what a link site is, but if it means creating posts where the content is an external link, and you want to track how often such links are clicked, I would say that Toolset doesn't include anything for such tracking built in, though you could no doubt augment a site made with Toolset with custom coding to fill in the gaps.
I would say if you can find a theme or plugin that is designed for this, then that would be the best option, and only resort to a custom solution including Toolset if you can't find anything that meets your needs.
Hi Nigel, thank you. I think we have to rely on Toolset after all investigation because there might be customization needs for the links and Toolset post would be perfect for that.
I found a plugin Popular posts which can show also popular custom posts. This is perfect for click statistics when you open the post first and then you open the link. But in the beginning when we don't have any other content than the link to an external page, it seems like an extra step to be forced first open the post and then click the link. So I'm thinking if there was a way to redirect the visitor to the external page automatically. This way we would have both: the statistics of cutom post clicks and redirecting to the external page.
Does this sound sane? 🙂 I don't know though how to redirect the custom post page. It could be done with this kind of meta code <meta http-equiv = "refresh" content = "0; url = [types field='link' output='raw'][/types]" /> but this should be added to header of page, between head tags.
Would you have any better idea or advice how I could achieve that code to header? Perhaps I should do the custompost.php and add the code there, but what how would I add the [types field='link' output='raw'][/types]?
I think you should add a little PHP snippet (to Toolset > Settings > Custom Code) that uses the template_redirect hook to check what kind of page we are on and if it is a single post of the relevant post type then redirect to the URL from the custom field belonging to the post.