Devam Ediyor

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.

<?php

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ün: number function, it field, use wordpress web designer, function number, part time wordpress, part time web designer, private web designer, custom field, wordpress list category post, code snippet wordpress, wordpress logged, code snippet web, wordpress code snippet, wordpress show post page, add field code, custom field post wordpress, wordpress show post category, wordpress form submit, wordpress function php, wordpress lol, function time, change deal people, wordpress users list, custom function wordpress, wordpress content based user

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

Proje NO: #4463057

Seçilen:

evgendob

Please, check PM

3 gün içinde 126$ USD
(197 Değerlendirme)
7.1

13 freelancer bu iş için ortalamada 147$ teklif veriyor

rajeshsonisl

Quality work assured. Ready to get started. Thanks.

in 3 gün içinde420$ USD
(377 Değerlendirme)
6.9
adaberry

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

in 5 gün içinde147$ USD
(14 Değerlendirme)
5.8
freelancworldLtd

I am ready to start your project right now..

in 3 gün içinde144$ USD
(29 Değerlendirme)
5.1
itsoftwarelab

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 fazlası

in 3 gün içinde147$ USD
(27 Değerlendirme)
5.0
WikiSolutions

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

in 3 gün içinde99$ USD
(27 Değerlendirme)
4.7
raiseit

Dear Sir, We are interested to work for you.Please check your private message.

in 3 gün içinde136$ USD
(11 Değerlendirme)
4.7
Sandiya

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 fazlası

in 5 gün içinde126$ USD
(14 Değerlendirme)
4.6
ahsan2k

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

in 5 gün içinde147$ USD
(9 Değerlendirme)
4.2
navnit9151

HI, Ready to start.

in 3 gün içinde100$ USD
(15 Değerlendirme)
3.6
ceruleusX

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

in 2 gün içinde126$ USD
(8 Değerlendirme)
3.5
tigermax

hi, I am interested in this job, thanks

in 38 gün içinde110$ USD
(2 Değerlendirme)
1.5
Batista111

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

in 2 gün içinde83$ USD
(0 Değerlendirme)
0.0
jewelahsan

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 fazlası

in 3 gün içinde77$ USD
(0 Değerlendirme)
1.4