- This topic has 1 reply, 2 voices, and was last updated 10 months, 3 weeks ago by .
- You must be logged in to reply to this topic.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
There's a difference between actions and filters. Bill's code is manipulating filters, which means the more link is being changed at the place in the Genesis code where the corresponding apply_filters function is installed. Filters always return content.
Actions on the other hand, generally don't return content, but are used for executing one of more add_actions based on their priority in the corresponding do_action queue.
Don't hold me to this, but I don't think the genesis_after_entry_content is going to work for the read more link. All the filters in Bill's code are called within the "loop". The loop is where post content is pulled from the database and prepared for display on the front end. I could be wrong about this, but I believe genesis_after_entry_content executes after the loop has completed. After the loop, the more link won't have access to the appropriate content. If you can get this to work, I'd be interest to know your result. It's not anything I would even try.
© 2022 WPEngine, Inc.