admin管理员组

文章数量:1292646

Is it possible to change content in a "p" tag or "img" tag in my custom php template file, without going into code editor of the php file.

For example: If I give the website over to the client, they may not have the skillset to updated the php file, but it will be easier for them to update the content in Wordpress Dashboard.

Is it possible to change content in a "p" tag or "img" tag in my custom php template file, without going into code editor of the php file.

For example: If I give the website over to the client, they may not have the skillset to updated the php file, but it will be easier for them to update the content in Wordpress Dashboard.

Share Improve this question asked May 12, 2021 at 18:18 Anrich VigusAnrich Vigus 32 bronze badges 5
  • 1 Yes, you can put that text in a post meta if it's per page or an option if it's global to the site and then set up something on the dashboard to edit it. (I think this is easy to do with ACF but it's been a while since I used it, and plenty of other options are available, including writing the admin page for this yourself.) – Rup Commented May 12, 2021 at 19:13
  • Is it just a custom template or a full on custom theme you built, because you could add stuff like this as options for the client to manage. – Tony Djukic Commented May 13, 2021 at 0:09
  • @rup Thank you so much, I'll have a look into this :) – Anrich Vigus Commented May 13, 2021 at 6:51
  • @TonyDjukic It's an Elementor theme, but I had to build a custom wordpress blog system – Anrich Vigus Commented May 13, 2021 at 6:52
  • So did you build it as a custom plugin? And why would you need a custom WordPress Blog System for WordPress? – Tony Djukic Commented May 13, 2021 at 16:40
Add a comment  | 

1 Answer 1

Reset to default 1

Yes.

Look into Custom Fields, or use the excellent Advanced Custom Fields plugin as Rup mentioned

本文标签: Is it possible to change content in my PHP file from WordPress dashboard