![]() |
Wordpress Gurus I need help-register to read more
I have stayed away from GFY because it has turned into a turd palace polico forum. It is the best place I know when I really need wordpress help so here goes.
I am looking for a very simple way to redirect guest users to a register page when they click "read more". Everything I have found is some bloated membership plugin with lots of shit I just dont need. Anyone know of a simple hack or easy plugin that will handle this? thanks in advance |
Quote:
|
yeah,
great software you sell BTW |
The easiest way to do it is: put this code into header.php of your WP theme:
Code:
if (!is_user_logged_in() && is_singular('post')) { There is one problem, however. The search engines will not be able to see the full articles too. Course it's not a problem to make an additional check to find out if it's an SE bot or a human, to perform redirect for human surfers only, but I guess that search engines will consider it as cloaking which is a black SEO method... So alternatively you can use this code: Code:
if (!is_user_logged_in() && strpos(wp_remote_request(), '#more') !== false) { |
Awesome..... works like a charm! And anyone looking to automate a network check out cyberseo's product. Not many scripts I have ever bought that I would recommend to a friend, but this is one of them. Not sucking up, but it's truly useful
|
All times are GMT -7. The time now is 06:47 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123