• Resolved crienet

    (@crienet)


    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]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter crienet

    (@crienet)

    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?

    Plugin Author M A Vinoth Kumar

    (@vinoth06)

    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.

    Thread Starter crienet

    (@crienet)

    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: https://www.crienet.com.br/testes
    Login: jason
    Senha: teste12345

    Please, I only want this!

    Thread Starter crienet

    (@crienet)

    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.

    Plugin Author M A Vinoth Kumar

    (@vinoth06)

    Kindly don’t share the credentials in public. Kindly delete that credentials from your website and share a new one to [email protected]

    Thread Starter crienet

    (@crienet)

    I can not delete it! You have nowhere to delete!

    Thread Starter crienet

    (@crienet)

    I do not think where to delete

    Plugin Author M A Vinoth Kumar

    (@vinoth06)

    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 [email protected]

    Let me check.

    Thread Starter crienet

    (@crienet)

    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!

    Plugin Author M A Vinoth Kumar

    (@vinoth06)

    Hope I have responded to you through email. Please let me know if you need any more assistance.

    Thanks

    Thread Starter crienet

    (@crienet)

    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!

    Thread Starter crienet

    (@crienet)

    I need to know what file was edited so I can understand. I could not find the place!

    • This reply was modified 6 years, 4 months ago by crienet.
    Plugin Author M A Vinoth Kumar

    (@vinoth06)

    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’);

    Thread Starter crienet

    (@crienet)

    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 6 years, 4 months ago by crienet.
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Custom field in post’ is closed to new replies.