Comments 2Whitney Mitchell started the conversationJuly 10, 2023 at 11:08pmHow can we add an ACF field above the Post Title in the Post Grid Widget? I have attached a screenshot of a Post Grid widget with "Categories" showing. Instead of Categories, we would like this to populate an ACF field pulled from the post. Attached files: Screenshot 2023-07-10 at 4.01.31 PM.png 1,192Amit repliedJuly 11, 2023 at 5:16amhttps://unlimited-elements.com/docs/using-acf-fields-in-post-list/ 2Whitney Mitchell repliedJuly 12, 2023 at 2:17pmThank you, that works, but how do I attached a CSS class to it so that I can edit the styling?? 1,192Amit repliedJuly 12, 2023 at 4:21pmin the html wrap it with what ever HTML u want <div class="myclass"></div> 2Whitney Mitchell repliedJuly 12, 2023 at 11:09pm<div class="custom_post_tag">{{item.post_list.cf_custom_post_tag}}</div>Like this??Attached files: Screenshot 2023-07-12 at 4.06.59 PM.png 1,192Amit repliedJuly 13, 2023 at 6:42amyes u could do that why not 2Whitney Mitchell repliedJuly 17, 2023 at 8:41pmPlease mark this as closed. Sign in to reply ...
How can we add an ACF field above the Post Title in the Post Grid Widget? I have attached a screenshot of a Post Grid widget with "Categories" showing. Instead of Categories, we would like this to populate an ACF field pulled from the post.
Attached files: Screenshot 2023-07-10 at 4.01.31 PM.png
https://unlimited-elements.com/docs/using-acf-fields-in-post-list/
Thank you, that works, but how do I attached a CSS class to it so that I can edit the styling??
in the html wrap it with what ever HTML u want
<div class="myclass"></div>
<div class="custom_post_tag">{{item.post_list.cf_custom_post_tag}}</div>
Like this??
Attached files: Screenshot 2023-07-12 at 4.06.59 PM.png
yes u could do that why not
Please mark this as closed.