![]() |
Is this possible in wordpress?
I'm trying to make a tour using wordpress and so far so good but is it possible in wordpress to make a person go to a special page on the 4th next post link?
EG: The surfer starts off on the home page but if they click on the Previous Posts" link more than a couple of time then they get sent to a Join page (made from a WP page post). I hope this makes sense! I'm wondering if there is a way to make the site say "if ?paged=4 then goto ?paged=join" I think i'm gibbering on a bit now. |
could pretty easily pass a variable around that keeps count
|
And how do i do that, please?
|
Just write your posts backwards. Post 1=Join Now! Post 4=Welcome to my new paysite!
|
Why not put your own links in the post, that way they can be more prominent and say what you want?
|
Quote:
unless I have jumped the gun & considering that 4 posts later is the definate number. I would have really thought that 10 maybe 15 posts later could be more affective. Obviously you still have the same problem. Just my thoughts if I was surfing your great website & get a join here after a set time, I would leave to enjoy looking through some others before joining, maybe theirs :2 cents: Hoping you get someone posting, that knows WP rogue :thumbsup |
Quote:
I can consider what Rogue is trying to create, of which it could be affective. But most people prefer to buy when they feel right & not feel pressured into a sale as said in my previous post :2 cents: |
Quote:
|
Quote:
|
Quote:
|
Quote:
I do like the idea of each post using a random plugin, at least everytime the surfer looks, they would see new material all the time :thumbsup |
I don't think the way you're doing it is the best, but well, you can try something like this, didn't test it since I'd never do it that way, but just try it and see if it works:
Code:
<?php wp_reset_query(); |
Not exactly what you're looking for but you might be able to mod this or use it somehow
http://wordpress.org/extend/plugins/page-links-to/ |
Quote:
Quote:
|
using "if is_page 4", if they go back to page 3 it will show them the previous page still.
sounded to me like you wanted them to be sent to join after they viewed 4 pages, no matter what. if so, that means you gotta store that tally somewhere. or did i misunderstand? |
Quote:
Code:
<a href="http://blablabla.com/blabla"> |
Quote:
I'm pretty sure its something like get_page-{id} but i'll be damned if i can get it to work, harvey's code works great, it finds page 4, i just cannot get it to redirect to my "join" page after its found it :( LOL, if Wordpress was in BASIC or COBOL i'd be able to do it, hell, i'd proberbly manage to do it in DBase! |
Quote:
luck with it Rogue :) |
Best way would be to code the page to display the join page contents inside the conditional, but you could try some javascript since it's easier.
Code:
if (is_page('4') ) |
If the url is always the same, ie... yoursite.com/page/4, you might just .htaccess it.
Redirect 302 /page/4 http://yoursite.com/joinpage |
Quote:
why not keep your ugly mouth shit so you dont keep reminding people how retarded you are :2 cents: |
Quote:
|
bump ....
|
Quote:
|
Quote:
The page i want to jump to is called http://www.myself.com/?page_id=2 so i've been trying variations of get_?page_id=2 but i'm shooting in the dark as i dont know the first thing about php! |
Quote:
The problem with php redirection it needs to happen before anything is output, so you'd want to put it in your header at the very top. Maybe in the header.php file of your theme at the very top. Some code like this: Code:
<?php Code:
if ($_GET['page_id']=='4') |
thanks, Brujah! your advice (as well as Harvey's) as well as someone on another forum solved this for me :)
Many thanks |
Have you tried any of the membership plugins for wordpress?
|
Sorry, didn't see it yesterday. Anyway, the idea behind conditionals is that under certain condition you need to do something different. In your case, when they get to page 4. So, you need to have both required actions: the one you want to regularly perform and the conditional one. In your case, it would be something like this:
Code:
<?php wp_reset_query(); |
All times are GMT -7. The time now is 02:20 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc