Forum Replies Created
-
AuthorPosts
-
November 18, 2017 at 2:56 pm in reply to: Displaying multiple custom fields with the same name #213718fncllMember
Thanks. And...bummer. I was really hoping there would be some straightforward way to get the custom fields---they are all attached to the same post---into an array...it seems like this should be a relatively common need, same name or not!
August 4, 2017 at 3:54 pm in reply to: How to remove titles from one post format in the loop (front page) #210010fncllMemberAdding is_front_page doesn't help because I am trying to selectively hide the title on the front page (so that condition is always true). The problem I had with the original code is that it apparently runs once on the front page and whatever the most recent post_format is determines whether the remove_action is run on ALL the posts.
I ended up selectively hiding posts with CSS instead:
.post_format-post-format-aside h2.entry-title a {display: none;}
But I still need to set selectors so it does the same on individual pages, etc. Thanks for the pointers!
fncllMemberI'm having the same problem. What hook location should I be using? How can I find this out for myself?
fncllMemberI tried using a 3rd parameter of 0, 1, 10, 100 -- it moved the content up and down but only below the meta information.
So I tried using
the_content
but it clobbered my content rather than adding right after it...how do I not do that? This is my simple code right now:add_action('the_content', 'post_add_bio'); function post_add_bio() { if (is_single()) { echo '<p>' . genesis_get_custom_field('authorbio') . '</p>'; } }
fncllMemberI've made progress...however, I have to use the XHTML hooks because enabling HTML5 with the Prose theme is causing all kinds of breakage even if I remove all of my custom code and rules.
I'm now able to add custom fields and did so using
genesis_after_post_title
However, how can I add content after the body of the post but before the meta information (categories, tags, etc)? The
genesis_after_post
hook is closest but it's still below that meta information... -
AuthorPosts