named block/blob of code editable in UI, but referenced in template files (php)

[ad_1]

Hi there,

I’m managing a wordpress environment using Newspack, though that part is probably not revelant.

What I’d like to do is be able to reference a bob of html that is user-editable within wordpress, in a template file. Reason is, I want to use some PHP logic around when it shows up rather than any wordpress UI magic.

But I want the content to be editable by users. I’ve been away from wordpress for a while so i’m not sure which of the entities woud work for this.

i.e. user sees three kinds of html blobs, blob1,blob2 and blob3

in the template file, at some point i will do a get\_editable\_blob(“blob3”) within a php if statement of some sort

[ad_2]
2 Comments
  1. ACF is what you’re looking for. Are you wanting to make the “blob” affect the site globally, or just per page? Where on the page do you want to show the output?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer