Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6626939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:57:15+00:00 2026-05-25T21:57:15+00:00

I’m trying to add a custom post type for ‘surgeons’ unfortunately theres like 6

  • 0

I’m trying to add a custom post type for ‘surgeons’ unfortunately theres like 6 sections i need to add which need to be rich text and not plain text for images, etc. this is what i currently have.

I have all the plain text fields working fine but now i need to add all rich text ones.

Set up various structures on backend

function personal_meta() {
  global $post;
  $custom = get_post_custom($post->ID);

  $email =   $custom["email"][0];
  $phone =   $custom["phone"][0];
  $address = $custom["address"][0];
  $website = $custom["website"][0];
  ?>

  <p><label>Email:</label><br />
  <input type="text" name="email" value="<?php echo $email; ?>" /></p>

  <p><label>Phone - with extension. i.e. (805) 555-2323 Ext 234</label><br />
  <input type="text" name="phone" value="<?php echo $phone; ?>" /></p>

  <p><label>Address:</label><br />
  <textarea cols="50" rows="4" name="address"><?php echo $address; ?></textarea></p>

    <p><label>Website - BEGINNING WITH http://</label><br />
  <input type="text" name="website" value="<?php echo $website; ?>" /></p>

  <?php
}

heres the code to save it

add_action(‘save_post’, ‘save_details’);

function save_details(){
  global $post;
  update_post_meta($post->ID, "email", $_POST["email"]);
  update_post_meta($post->ID, "phone", $_POST["phone"]);
  update_post_meta($post->ID, "address", $_POST["address"]);
  update_post_meta($post->ID, "website", $_POST["website"]);
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:57:16+00:00Added an answer on May 25, 2026 at 9:57 pm

    You need to add the class “theEditor” which will then add the tinyMCE editor to the textarea:

    <textarea class="theEditor" cols="50" rows="4" name="address">
        <?php echo $address; ?>
    </textarea>
    

    However, that will strip out <p> and <br> tags (not any others) when saved.

    To prevent stripping those tags, you will need to try something like this:

    <textarea class="theEditor" cols="50" rows="4" name="address">
        <?php echo wpautop(get_post_meta($post->ID, 'your text area', true)); ?>
    </textarea>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words
I'm trying to create an if statement in PHP that prevents a single post
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.