- This topic has 1 reply, 1 voice, and was last updated 10 years, 8 months ago by .
- The forum ‘General Discussion’ is closed to new topics and replies.
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.
On my site, I need to remove the default post content and replace it with the contents from a custom field. Our custom field has more checks and balances than the average content.
I have figured out that I probably need to do this in the genesis_post_content action with my own function. I have been able to add my own custom content using this function, but can't seem to figure out how to remove the default content.
The default content is not accepted in newer versions of our website, but is present in older versions of our posts.
Sorry, have figured it out.
I added the filter:
add_filter( 'the_content', 'my_content' );
And within the function my_content I added the custom fields.
© 2023 WPEngine, Inc.