Current status: Solved. . Done
show custom fields on post adding
  • i use WP 3.3.1 and ACF 3.5.0
    when i create post - a didn't see any custom fileds - i see them only after saving post or publishing it

    what i can do with this?
  • Good day, my English is not very good and if I remember correctly what you want is to display the values ​​you enter or select from their fields in a post, right?

    If so you should edit your single.php and post.php file and add the following to the part where you want to display fields. For each field created should add something like:

    <? php the_field ('nameField');?> </ p>

    I hope I've helped.

  • no - you didn't understand me


    do you know what is post edit page in admin area?
    when i create new post - there is no place to enter my custom fileds values!
    i see my custom fields on post edit page only after saving or publishing the post!


    i am using ACF on other WP website with WP 3.4.2 - and i see custom fields when i am creating new post even if i have not saved or publish it yet.
    Wordpress-Edit-Screen.jpg
    1045 x 693 - 169K
  • When you create a group you can specify custom fields in wordpress show that some of these fields. I think you need to post in "Location" in the group has already created to display the fields to create a new post.

    See the image below, for example, I decided to show when a the category of a post equals "picks". In the editor every time I pick a post and frame fields as category I show
    Location.JPG
    566 x 222 - 15K
    Field.JPG
    925 x 600 - 72K
  • Hi @moonvader1

    Can you post a screenshot with your field group showing the location rules? Perhaps it is your older version of WP which is casing the issue where your field group does not show dynamically.

    Can you check your JS console log and report any JS errors that you encounter when you expect your field groups to appear?

    Thanks
    Elliot
  • there are no errors in chrome console (F12)
    location settings.png
    1132 x 668 - 38K
    post add.png
    1104 x 650 - 87K
  • I would like to verify something. In "Location" choose " Post Category · " and choose "equal" to any category and guard. Then when vay to writing a post the category marks that before elected and his(her,your) fields must appear.
  • i set post category to be "uncategorized"
    but fields still are not appearing when i create new post
  • Hi @moonvader1

    you may have uncovered a bug where if no category is selected, the uncategorized location value is not correctly matched.

    I'll look into this and fix if necessary

    Thanks
    Elliot
  • Hi @moonvader1,

    This has been fixed and pushed to the latest nightly build on github

    Cheers
    Elliot