Simple Wordpress Plugin to count clicks on custom fields

I have a WordPress website for visitors to download files stored on my Google Drive.

I am using WP Types plugin to create a custom field that I paste the Google Drive url in, and I render the link as a button inside a table like this:

[url removed, login to view]

the file download link is the orange/gold button that has the download icon and the words

إضغط هنا للتحميل

this table is php coded in the [url removed, login to view] file.

I paste the google drive download link in this format:

[url removed, login to view]

I need a very simple code to track my downloads and display the number of file downloads.

Details of what I need:


1- The code to be written as a Wordpress plugin so I can easily install it on multiple separate sites (NOT a multisite) and it automatically adds the appropriate tables into the database for each site.

2- I don't want to do extra steps (like adding the downloads to a custom post type or other. that's why I am not using a ready made "downloads" plugin.

3- I will be using caching plugins and Cloudflare CDN. so I need the plugin to cope with this.

4- I need a shortcode to show the number of downloads in each table.

5- I need a function with a shortcode to display the total number of downloads in the whole site.

Maybe the solution is that the plugin needs store the data in a MySQL table, with a cronjob to clean up the counting (if you will use a table to count, and a table to store the final count).

Each download file will be related to one post. so you can use the post ID to identify the download location.

If there is a way to put a code around the custom field, so when it gets clicked it sends the post id to the database then echo the download number.

I am quite open to suggestions if you have, but PLEASE DON'T bid on the job, then think of a solution later when you win the job.


Skills: MySQL, PHP, WordPress

See more: wordpress plugin custom fields search, nextgen custom fields front end wordpress, wordpress custom fields search plugin, php, wordpress, javascript, wordpress plugin, create template joomla photoshop, custom fields wordpress plugin api, wordpress plugin description custom fields, custom fields wordpress plugin, joomla create template software, joomla create template linux, create template joomla linux, create template joomla scratch, create basic template joomla, joomla create template static website, wordpress plugin advance custom fields, wordpress custom fields database plugin, wordpress plugin simple syn

About the Employer:
( 42 reviews ) Brisbane, Australia

Project ID: #11617090

Awarded to:


أهلا وسهلا يبدو أنك من الناطقين باللغة العربية Hello! Hopefully you are fine! I have read your description. I have read your description and here is my solution: 1: I am supposing that every download link will More

$85 AUD in 3 days
(176 Reviews)

15 freelancers are bidding on average $44 for this job

$50 AUD in 3 days
(208 Reviews)
$49 AUD in 1 day
(3671 Reviews)

sir pm me thanks ... sir pm me thanks ... sir pm me thanks ... sir pm me thanks ... sir pm me thanks ...

$50 AUD in 1 day
(108 Reviews)

Hi employer. I am a professional developer in PHP, Yii, Wordpress, Laravel, Magento, Joomla, Prestashop, OpenCart, CSS3, HTML5, Jquery. I think i can do this project. Please hire me. You will contentment with my skills More

$50 AUD in 1 day
(88 Reviews)

Hi, I have thoroughly reviewed your project description and website and I can complete this project for you. I will not waste your time and just tell you exactly how I would complete this project. My approach would be More

$60 AUD in 1 day
(30 Reviews)

A proposal has not yet been provided

$35 AUD in 3 days
(76 Reviews)

I have read over your project description and I'm interested in completing your task. If you check my site or portfolio you will see that I am of a higher quality than most freelancers on here. I get it done quickly, e More

$50 AUD in 1 day
(20 Reviews)

Hi, Please give me opportunity to work with you I have expertise in PHP, CMS, wordpress, website design and development. I can edit or add in ur website for you as you mentioned in description.. I have More

$42 AUD in 1 day
(7 Reviews)

A proposal has not yet been provided

$45 AUD in 5 days
(12 Reviews)
$40 AUD in 1 day
(8 Reviews)

A proposal has not yet been provided

$25 AUD in 3 days
(5 Reviews)
$35 AUD in 1 day
(0 Reviews)

Hi, I have gone through your requirement of integrating a plugin to your existing website, We have extensive experience in developing and integrating plugins to wordpress website. We can assign our expert developer More

$20 AUD in 1 day
(1 Review)

HELLO! I hope this message sifts through the spam and finds you well. I found your job posting and I think I'd be a great fit. As per your requirements, I would like to tell you that I've more than 3 years of experie More

$25 AUD in 2 days
(0 Reviews)