Just writing in to check if this functionality exists in the plugin or no.
I’d like to add a couple of fields to a the user profile area and then output their contents in the posts.
These will be some of the fields,
The contents of these fields would then need to be output into the post in 2 ways.
1. Before the post is generated, outside the WordPress post loop so directly added through the single.php file.
2. Within the content of the post. Maybe using a shortcode – say [COMPANY-NAME] which will be replaced by the name entered by the logged-in user in his/her profile.
Please let me know if this can be done using the plugin.
Like anything with ACF, you will need to do the coding, but it can be done.
1) Before the loop you can use the WP function get_queried_object() to get the post. Using this you can get the author of the post using other WP functions. Then you can use this to get the fields form the authors profile.
2) To do something like this you would need to build your own custom shortcodes.
Viewing 2 posts - 1 through 2 (of 2 total)
The topic ‘Add user fileds to profile area and output them in every post’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users