WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
[resolved] Ho to Add a Custom Editable Text Area (3 posts)

  1. iSimone
    Member
    Posted 3 years ago #

    Hey Scribu, I was wondering if you could point me in the right direction here? I am trying to get one editable field done, but I'm not entirely getting the dev page you set up yet.

    Let me give you an example, I'd like to edit this little snippet from the frontend:

    <p>A slick WordPress tumblog with a quickpress dashboard widget to easily publish content. You can edit this module in the theme options. <a title="Read More" href=""></a></p>

    What do I need to do?

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    With the stable version (1.9.1), you can do this:

    <p><?php editable_option( 'give_it_a_name', true, 'textarea' ) ?></p>

    In the next version (2.0), you will be able to do this:

    <p><?php editable_option( array(
      'key' => 'give_it_a_name',
      'type' => 'textarea',
      'default' => 'A slick WordPress tumblog with a quickpress dashboard widget to easily publish content. You can edit this module in the theme options. <a title="Read More" href=""></a>'
    ) ) ?></p>
  3. iSimone
    Member
    Posted 3 years ago #

    Sweet thanks Scribu, I've seen you already tagged something 2.0.0pre so it won't be too long before the second option.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic