0

I have a custom page (page-news.php) and I styled it. Now I need to change some texts, and I dont want to do this in hardcoded page-news.php but I want to be able to change that in Wordpress, without go to code. Did you have maybe some ideas how to do this?

Here is visualization of how I think it should work (the only thing I can change would be white custom-text with section-1,section-2 and section-3) and I will be do this in wp-admin > pages >news:

Any ideas? I will be grateful for answer

2
  • A very nice solution is to use this plugin called ACF : ACF With that, you can create custom fields and assign them to posts - pages - categories and many other options. It's easy to use and there are a lot of features and even more if you get the PRO version. Commented Jan 17, 2017 at 12:09
  • thank you very much, this is what I needed! Commented Jan 17, 2017 at 13:16

1 Answer 1

1

Use ACF plugin. After installation, you can create custom fields and define their types. In your case, you should create 3 editor field or textarea and attach them to you page. When you visit wp-admin>pages>news you'll see these fields. Use get_field($fieldSlug) in your page template to show the values.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.