Käynnissä

Write some Software WordPress function modification

I need some one to modify a WordPress function that count and gets the post views.

The function is the following:

function getPostViews($postID){

$count_key = 'post_views_count';

$count = get_post_meta($postID, $count_key, true);

if($count==''){

delete_post_meta($postID, $count_key);

add_post_meta($postID, $count_key, '0');

return "0 View";

}

return $count.' Views';

}

function setPostViews($postID) {

$count_key = 'post_views_count';

$count = get_post_meta($postID, $count_key, true);

if($count==''){

$count = 0;

delete_post_meta($postID, $count_key);

add_post_meta($postID, $count_key, '0');

}else{

$count++;

update_post_meta($postID, $count_key, $count);

}

}

// Remove issues with prefetching adding extra views

remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);

So i need this $count++; to count different for the new posts and different for the old posts.

For example if post are 2 hours news then $count = $count++ + 1; else if post are 12 hours old then $count++;

I want to increase the views of the new posts and for the old post after a time limit to start count normally.

To avoid the big amount of post views in the new posts i need the $count++; to stop in i limit of views.

For example if post are 2 hours news then $count = $count++ + 1; LIMIT=500000-Views and after the 500000 Views $count++; else if post are 12 hours old then $count++;

Please be informed that i need a WordPress expert and specialist!

Taidot: PHP, tietojärjestelmäarkkitehtuuri, WordPress

Näytä lisää: software write books, software write protection, oscommerce adding extra message, free software write book, software write book, software write technical manual, wordpress software

About the Employer:
( 1 review ) Nayplio, Greece

Projektin tunnus: #13154493

Myönnetty käyttäjälle:

conankid

What experience do you have that is relevant to this project? I have a lot experience with wordpress and PHP Proposal: I already have the working function, please contact me to get it

20 $ USD 0 päivässä
(37 arvostelua)
5.4

5 freelanceria on tarjonnut keskimäärin 65 $ tähän työhön

maxpl

What experience do you have that is relevant to this project? I have done many Wordpress projects. You can check in details. I have submitted all links of my work. Proposal: Hi, I am a full stack web develope Lisää

222 $ USD 4 päivässä
(31 arvostelua)
6.5
schoudhary1553

What experience do you have that is relevant to this project? yes i have 5 years of exp.. Proposal: Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to se Lisää

25 $ USD 1 päivässä
(10 arvostelua)
4.4
dezines99

What experience do you have that is relevant to this project? Hi, Expert here,ready to start immediately. I will always available to discuss project specs.I have reviewed all your requirements and can deliver exactly Lisää

27 $ USD 0 päivässä
(16 arvostelua)
3.9
deepdhanoa

I have four year experience I can share with you my experience I can start now and will finish ASAP.

30 $ USD 0 päivässä
(1 arvostelu)
1.5
24 $ USD 6 päivässä
(0 arvostelua)
0.0