Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
December 30, 2015 at 10:44 am in reply to: Using ACF but the custom field value is not displaying between the html tags #175199ndmdnMember
Thanks so much Brad! That did the trick! I really appreciate it.
December 30, 2015 at 9:17 am in reply to: Using ACF but the custom field value is not displaying between the html tags #175188ndmdnMemberHi Brad,
Thanks for the reply, I really appreciate it.
I have updated with the missing hyphen but still no luck. Also, when I use the get_post_meta function no values are returned at all. I really only want to display the ACF values for these entries and it seems like the_field() should do the trick fine based on the documentation but I just can't understand why it would return the correct value but not place it inside the tags, yet still have the tags created seemingly correctly.
Here is the new output and template code:
<h2 class="entry-title" itemprop="headline"> <a href="http://localhost/MusicSocialChange/members/carlos-chirinos/" rel="bookmark">Carlos Chirinos</a> </h2> <p class="lead-position"></p> <div class="portfolio-image"><a href="http://localhost/MusicSocialChange/members/carlos-chirinos/" rel="bookmark"><img src="http://localhost/MusicSocialChange/wp-content/uploads/2015/12/profile-placeholder.gif" alt="Carlos Chirinos" /></a></div> </header>
add_action( 'genesis_entry_header', 'mscl_show_contact_info' ); function mscl_show_contact_info() { echo '<p class="lead-position">' . get_post_meta() . '</p>'; } // Display Featured image in the entry content add_action( 'genesis_entry_header', 'mscl_show_featured_image' ); function mscl_show_featured_image() { if ( $image = genesis_get_image( 'format=url&size=portfolio' ) ) { printf( '<div class="portfolio-image"><a href="%s" rel="bookmark"><img src="%s" alt="%s" /></a></div>', get_permalink(), $image, the_title_attribute( 'echo=0' ) ); } }
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)