Custom field in post
-
Do you have any tutorials that teach you how to add a field in the post? I want to add fields in the articles to appear in the post. Thank you!
The page I need help with: [log in to see the link]
-
Wow what a wonderful plugin, my congratulations! I manage to add the fields, but it does not appear in the post. There was one person here who had the same doubt, but on his topic does not show until the end. What do I have to do for the field to appear in the post?
Hi Crienent
You need to add the custom post or profile field in to the theme.For example, if you want to add custom post field. Then kindly find the respective theme file or child theme. Then add echo get_post_meta($post_id, ‘custom_post_meta_key’);
This will show your custom post field in the Template.
Please don’t hesitate to contact for any queries.
I did not get it! The field I created was: Phone, with the id “Phone”. Can you tell me how to create this code? Can not find where to add the echo but I do not know how to use it! :(.
site: http://www.crienet.com.br/testes
Login: jason
Senha: teste12345Please, I only want this!
I know where to add, I do not know how to do the code, I do not know where to add the id of the field.
Kindly don’t share the credentials in public. Kindly delete that credentials from your website and share a new one to support@buffercode.com
I can not delete it! You have nowhere to delete!
I do not think where to delete
You can’t delete that post here. Delete the shared account in your WordPress website. Someone may misuse it.
Kindly share the new credentials to support@buffercode.com
Let me check.
Ok, They are data for tests, so I think I’m not at risk, and it will change soon! But I’ll exclude yes. I’ll send it by e-mail.
This function will be added in another site, this current one is for tests to not occur errors in my site. I’ll send!
Hope I have responded to you through email. Please let me know if you need any more assistance.
Thanks
I get to see it there but I need to know what it was made for me to do on the original site. Have you added any code to the single.php file? I need to learn to add other fields on my site in a project I’m doing!
I need to know what file was edited so I can understand. I could not find the place!
-
This reply was modified 7 years, 4 months ago by
crienet.
I have modified template/template-part/post/content.php
added a line as I have previously shared,
echo get_post_meta(‘PARAMETERS_BASED_ON_THE_LOCATION’);
It worked! Get! Very good plugin. Thank you ! If it’s not going to give you work, I’d like you to just show the field menu when it contains data. Example: “Phone:” 551155555555. I do not want “Phone” to appear when I have no data in the field, is it possible? This will help other people!
-
This reply was modified 7 years, 4 months ago by
crienet.
-
This reply was modified 7 years, 4 months ago by
The topic ‘Custom field in post’ is closed to new replies.