- This topic has 27 replies, 4 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
January 26, 2023 at 3:51 am #2509580
David
StaffCustomer SupportI made an edit to the code above;
https://generatepress.com/forums/topic/single-post-author-template-to-show-data-from-acf-on-author-profiles/#post-2509199I didn’t spot i had
the_fieldwhich displays the field instead ofget_field….Try that, and if you can – would you mind raising a separate topic for the single post issues? i know its kinda related but it may take a few replies and one topic for all can get a bit long 🙂
January 26, 2023 at 8:30 am #2510021Saul
No luck! The image still not showing.
I have created a separate topic for single post issues which can be seen here: https://generatepress.com/forums/topic/post-meta-section-to-show-post-author-and-medically-reviewed-by-author/
January 26, 2023 at 9:41 am #2510087David
StaffCustomer SupportCan you link me to a page where it is not showing ?
January 26, 2023 at 9:45 am #2510090Saul
Sent via Private Message!
January 26, 2023 at 12:46 pm #2510278Ying
StaffCustomer SupportYou didn’t change your_field_name to the actual field name, so the code would not work.
https://www.screencast.com/t/UR7LkdiPJnrJanuary 26, 2023 at 1:18 pm #2510292Saul
My bad! I forgot to update the field in the updated code. I just did that and it worked fine. Thanks!
January 26, 2023 at 1:20 pm #2510296Ying
StaffCustomer SupportGlad to hear that 🙂
January 27, 2023 at 8:18 pm #2511665Saul
Related to the same Single Post Author Template… I have a checkbox type field as you can see in the screenshot: https://prnt.sc/I4bjlbDBt-7B which I want to show on the same Block – Element Loop Template but data added through this field is not showing on the Front-end (https://prnt.sc/8AdGWIER47L4). Here is the field setup in backend: https://prnt.sc/H0XXeg50Q3fv
January 28, 2023 at 3:04 am #2511810David
StaffCustomer SupportWhat value is stored in that custom field ? And is it storing multiple values ?
January 28, 2023 at 5:21 am #2511891Saul
That field is for authors skills selection in the back-end (https://prnt.sc/R2e_tSDcVTwM) and idea is to show the selected skills in front-end separated with commas (a rough UI here: https://prnt.sc/FVZIQ-VOFEqo). The custom field is set to return both Value and Label. It can have one or more than one selection.
January 28, 2023 at 5:29 am #2511901David
StaffCustomer SupportIf its a repeater field or an array of values then that is not yet supported in the dynamic data.
You would need an ACF shortcode for that. I found this in the ACF support forum as an example:https://support.advancedcustomfields.com/forums/topic/repeater-field-shortcode/#post-57635
February 2, 2023 at 8:32 am #2518748Saul
Thanks… Will give that a try!
February 2, 2023 at 8:43 am #2518773David
StaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.