Forums

[resolved] Add frequently changed text box to index (no widgets) (5 posts)

  1. dooom
    Member
    Posted 3 months ago #

    Hi there,

    A client is looking to add an area of text to the index that will be changed quite a bit, but I'm not sure how to do this without using a textwidget as I think the whole process will confuse them.

    Here's a quick example of my layout: http://cl.ly/3p3o3X1z3P2q1d0z2M3G

    Is there a plugin or something that'll add an area to the admin sidebar to allow text-updates?

    Ideally I'd like to have the client login, nav down to "Home Text Edit", or similar name, and a page with a metabox + save button appears that'll send the information to the index (assuming I'd use it with a php include).

    THANKS SO MUCH for any ideas!

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 3 months ago #

    I'v edone similar before using a custom post type. And then within the particular box querying just one post from the CPT.

    I'll admit, I don't think it's an ideal use of CPTs, but having a menu option that said Update Front Page was the least confucsing thing I could think of in this particular case.

    Each time they wanted to update the box, they added a new post to this CPT

  3. dooom
    Member
    Posted 3 months ago #

    That's interesting and would totally solve my problem. So editing the post and saving wouldn't updatee the box?

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 3 months ago #

    It would. Or, if the content totally changes, they could just write a new post of this custom post type. Since you would only query 1 post of the CPT in that box, only the most recent post would show up.

    A lot of themes do similar, but using categories like 'featured' or something. Just the person I was designing for couldn't possibly remember to assign the featured category to the post that was supposed to go in the box. So I used a seperate CPT just for the 'featured' box.

  5. dooom
    Member
    Posted 3 months ago #

    Awesome! This is perfect, simple, easiest solution for my client.

    Thanks Rev. Voodoo!

Reply

You must log in to post.

About this Topic

Tags