Hi,
I'm searching for a plugin where I can map an editable string to an ID in order to use it in PHP code. It should be similar to the "Translations" section in Polylang: a table with all the IDs and a textfield next to it where the client can change the text. In different places in my theme code I want to output those texts (like `pll__(string)`)
As my page is not using a different languages I don't want to use Polylang for it if I don't have to.
Ideally it should be a simple table in the backend with two columns: ID – Text, a PHP method that will return the text when I call it with the ID. I can add new rows or delete them.
I can build it myself but if there is anything like this I could save some time 🙂
You might want to check out the “ACF Options Page” combined with ACF(Advanced Custom Fields). It allows you to create a simple admin page where you can set up fields for your IDs and texts.
You can then easily retrieve these values in your theme code using `get_field(‘your_field_name’)`. It’s not exactly like Polylang, but it should give you the functionality you need without the overhead of a full translation plugin.
If you’re comfortable with some custom coding, this could save you time and keep things lightweight.