Hey!
I have a WordPress blog and I want to be able to have it so I can display certain text to half of my vistors and some other text to the other half. So, like if say umm 100 people came to my site then 50 would see text a and 50 would see text b.
Can anyone show me how I would do something like that? I really don't know much about code, I just read something on the WordPress site about PHP and I found this place.
All help would be appreciated.
Chloe <3
xxxx
Could someone help me write some simple code? Would appreciate it a lot xxx :)
Started by chloexoxo, Sep 17 2011 01:15 PM
3 replies to this topic
#1
Posted 17 September 2011 - 01:15 PM
|
|
|
#2
Posted 17 September 2011 - 03:01 PM
Do you have a blog on wordpress.com, or are you installing wordpress software on your own site? They are two completely different situations.
#3
Posted 19 September 2011 - 05:55 AM
The actual concept is easy, count and store the amount of times you display text a. When the amount is 50 or higher, display text 2. When the amount is 100, reset to 0. But like WingedPanther said, you need to have your own hosting for storing files.
#4
Posted 19 September 2011 - 02:01 PM
Even better is to count visitors and
if ($visitors % 2 == 0) show 1 else show 2
this shows all texts equal amount of times...
if ($visitors % 2 == 0) show 1 else show 2
this shows all texts equal amount of times...
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









