Custom fields used like variables
-
Hi WordPress geniuses,
I am trying to understand custom fields and have read all I can on them in the wordpress forum and google searching, but I am still unsure how I can use them for the task below:
Simply, I have the need to display:
Name: Mr. Dudeman
Company: Modest company
Website: https://www.modestcompany.com
Phone: 555-111-2222I want to use custom fields in posts, so if I want to add a new customer, I can just add their details (name, company ..etc) into the custom fields and then in another page, I can list all the posts(customers details) in a loop that will display the posts one at a time like so:
Name: Mr. Dudeman
Company: Modest company
Website: https://www.modestcompany.com
Phone: 555-111-2222Name: Mrs. Awesomeperson
Company: Small company
Website: https://www.smallcompany.com
Phone: 555-211-2222Name: Dr. Stein
Company: Mysterious company
Website: https://www.mysteriouscompany.com
Phone: 555-311-2222etc….
Is custom fields the way to go?
If so, then how can I make a post that is a template so I don’t have to keep adding the custom fields over and over again for each new post.
Thank you
James
- The topic ‘Custom fields used like variables’ is closed to new replies.