Add wysiwyg to CustomPress => custom fields

How would I go about adding a wysisyg to a specific custom field textarea inside CustomPress. The current textarea is only allowing basic text and html. I want the user to be able to add content in a similar way as editing a post or page in wordpress.

I have tested it on my test site and the wysisyg textarea to add directory listing content is displaying fine on my test site on the page http://mysite.com/listings/edit-listing/ as shown in the attached screenshot.

Have you customized this page that caused to hide this textarea or anything else that caused it?

If you have not made any customizations then this can be due to plugin/theme conflict on your site.

You can just try on your development site temporary using default WordPress theme like Twenty Fifteen and temporary deactivating all other plugins and activating them one by one as displayed in the following flowchart to know which theme/plugin is conflicting if any.

I have read the two forum links you provided and done a bit more research on the wpmudev forums but have been unable to come up with a solution. It seems like people have been asking for this feature for over 2-3 years and it still has not been incorporated into the plugin... Bummer :slight_frown:

The second link you refer to is from 2012 and non of the screen shots or document links (output.pdf) work. I was unable to get the code provided by leejacksondev working on my site.

Many forum post link back to a robbluther.com but when you arrive at his site you get a 404 error. I even tried searching around his blog and using his search box to see if it was just renamed but was not able to find it.

I have added the code you provided above to my functions.php file and its still not displaying any editor... I also tried to wrap the code you provided in a plugin (see plugin code below) but was still unable to see a change. Could you please take a look for me?

I checked the JavaScript console for errors but did not see any... The page where the editor is supposed to be showing up is the edit or add listing page. The editor should be showing up on the "About Me" and the "About my company" text box.

I have added this modified code on your site and found now the tinymce are displaying on the add listings page "About My Company" and "About Me*" fields. I didn't find any text area on your edit listings page.

Thank You! The code is working in both the Edit and Add listing pages. However when I edit a listing and click "Save Changes" I am not getting redirected back to the My Listings page. It seems to be just refreshing the page and adding a # to the end of the URL (http://myinsurancepage.com/listings/edit-listing/#). The save takes place however this may be confusing to a user.

Is there a way to redirect back to the My Listings page after clicking the "Save Changes" button? This redirect happens when I add a new listing.

Is there a way to redirect back to the My Listings page after clicking the "Save Changes" button? This redirect happens when I add a new listing.

By default without using the provided code the edit listings page doesn't redirect anywhere on saving but the add listings page gets redirected to My listings page so what you are trying to achieve is a custom functionality.

Also I believe I found a bug in the plugin.... Could you please check for me? When I created a listing and saved as a draft, then try to edit any other listing it redirects me to the preview of the listing that has been saved as a draft.

If I delete the draft listing from the front end editor (listings/my-listings) it still throws the error. If I go into the back end (/wp-admin/edit.php?post_status=virtual&post_type=directory_listing&ids=26) and delete the listing everything starts to work again....

Still looking for some more info on that redirect issue from above... any help would be greatly appreciated :slight_smile:!!!!!

Also I believe I found a bug in the plugin.... Could you please check for me? When I created a listing and saved as a draft, then try to edit any other listing it redirects me to the preview of the listing that has been saved as a draft.

I tried to replicate this issue on my testing site, but this worked fine. Did you tested it with your custom code? It could be reason of this not working properly.

Your js script will not work - because if you use it, then your form will not be processed - you click, sites reload do edit-listing, but what listing? When you click Save, it saves data to data base, then reloads page - so you need to change this processes.

If you take a look on the main.php file in the plugin folder, you will find

Are you talking about the main.php file in (/directory/core)? To me it looks like they should be both doing the same thing after the "Save" or "Update" command. But for some reason on my site when I save a new listing I get redirected to the listings/my-listings page but when I update an already existing listing the page saves and refreshes adding a # to the end of the url /listings/edit-listing/#

Did you tested it with your custom code? It could be reason of this not working properly.

I think I was testing with my custom code. I will double check this as soon as I get an answer back from this thread because I am unable to access the back end of our site right now.

How do you rate me?

Thank you for rating your experience!

We’re thrilled to hear you had a great experience with . Would you like to leave a comment about your experience?
Thanks for voting on your experience with , we’d love to get some feedback please.
Ohh no! We’re really sorry to hear you didn’t have a pleasant experience with , we’re always looking at how we can improve and would appreciate you provide some further feedback here please.
Type your feedback here

it's great that you had a positive one. Based on your experience in this ticket would you please be kind enough to rate us externally on: