soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
314 stars 29 forks source link

Make pages built in Oxygen searchable without plugins #1692

Open swinggraphics opened 3 years ago

swinggraphics commented 3 years ago

Because Oxygen stores all the content in a meta field, it is not findable by WordPress default search. Plugins like Relevansii bloat the database enormously and should not be strictly necessary for basic search in the front end or admin. When a single page or other post type is edited by Oxygen, taking it over from the WP editor, it would be great if Oxygen rendered the content and saved it in the normal post content field (putting it in a Custom HTML block would probably make things easy). The one gotcha would be when the Oxygen page itself includes an Inner Content element. In those cases, this feature would be skipped.

swinggraphics commented 3 years ago

I created a slightly hacky way to accomplish this in a plugin: https://gist.github.com/swinggraphics/246564022eb66ecf12da4ab8ef1731c1