Wordpress function based on custom field

This project is pretty simple and straight forward for people with some knowledge in Wordpress and php. It includes 4 php snippets which are going to be used on a wordpress site:

(A) The "button"

(1) A form submit button "Associate" that is shown for logged-in users on single post page. When being clicked by a logged in user, the form will add this user's to the post's custom field of (which is going to be created by me).

(2) A form submit button "Unassociate" only showed for a logged-in user and that if his username is already exist within in the values of the custom field of current post, when clicked, the user's username will be removed from the custom field.

As you can see, the visibility of button (1) and (2) is depend on whether the current user's username exists in the cf . Neither of them will appear if the user is not logged-in.

(B) Number counter

Php snippet that can be put on single post page to show the number of values (how many usernames) in the custom filed of current post.

(C) Post Listing

Php snippet to list posts on condition that their cf contains the current logged-in user's username, and based on post category.

In your code you can use "examplecat" for the category, I will change it according to my needs.

(D) PHP condition snippet (to be put on single post page)

Content only show if current logged-in user's username is within the current post's custom field of .

i.e. I will handle the content and the message myself.


code if

//private content

code else echo //message


Hope they are light weight and efficient. You only need to deal with the codes, i will handle the rest myself. (I am a part-time web designer). The codes can be sent to me in text. Good luck! lol

Beceriler: PHP, WordPress

Daha fazlasını gör: number function, it field, how to use wordpress as a web designer, function number, part time wordpress, part time web designer, i need web designer to handle my web site for me, i am a private web designer, d associate, custom field, based on wordpress, wordpress list category post, code snippet wordpress, wordpress logged, code snippet web, wordpress code snippet, wordpress show post page, add field code, php wordpress add custom field, custom field post wordpress, wordpress show post category, wordpress form submit, wordpress function php, wordpress lol, function time

İşveren Hakkında:
( 3 değerlendirme ) HUNG HOM, Hong Kong

Proje NO: #4463057



Please, check PM

%selectedBids___i_period_sub_7% gün içinde 126%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(197 Değerlendirme)

13 freelancers are bidding on average $147 for this job


Quality work assured. Ready to get started. Thanks.

in %bids___i_period_sub_35% gün içinde420%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(377 Değerlendirme)

We are experts in designing and development. Check PMB for our portfolio detail and proposal.

in %bids___i_period_sub_35% gün içinde147%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(14 Değerlendirme)

I am ready to start your project right now..

in %bids___i_period_sub_35% gün içinde144%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(29 Değerlendirme)

Our main focus is to deliver the quality work with full support to our clients at very competitive rates. We will be happy to work with you on long term basis. So please consider us for your project. Hoping for the Daha Fazla

in %bids___i_period_sub_35% gün içinde147%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(27 Değerlendirme)

We've what it takes, Please check PMB for details, Thanks.

in %bids___i_period_sub_35% gün içinde99%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(27 Değerlendirme)

Dear Sir, We are interested to work for [url removed, login to view] check your private message.

in %bids___i_period_sub_35% gün içinde136%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(11 Değerlendirme)

Hello, we having good experience to complete this WordPress project . Our team is very much interested to carry out WordPress job by targeting on time delivery along with perfection of project. For further details and Daha Fazla

in %bids___i_period_sub_35% gün içinde126%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(14 Değerlendirme)

I have good experience with wordpress. I can do it right.

in %bids___i_period_sub_35% gün içinde147%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(9 Değerlendirme)

HI, Ready to start.

in %bids___i_period_sub_35% gün içinde100%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(15 Değerlendirme)

Hi there, I would like to work on this since I'm experienced Wordpress developer. Thanks in advance.

in %bids___i_period_sub_35% gün içinde126%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(8 Değerlendirme)

hi, I am interested in this job, thanks

in %bids___i_period_sub_35% gün içinde110%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(2 Değerlendirme)

we are expert in wordpress,php,joomla,css,js,jquery,html,photoshop ajax...please check my PMB

in %bids___i_period_sub_35% gün içinde83%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)

Dear Hiring Manager, Thank you for this wonderful opportunity. Today Your job posting has caught my attention I have excellent experience in Website Development. I can finish this job within the necessary time fr Daha Fazla

in %bids___i_period_sub_35% gün içinde77%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)