• Resolved NoctisLc

    (@noctislc)


    Hi there,
    I’m kinda new in the world of wordpress and i did choose this platform because a lot of people are using it, and i find it very good and “simple-to-use”.

    I’ll get stright to the point. I have a website, but i did pay one guy to make it for me since my knowledge of wordpress was near 0. The website is working good, but i need to add a Visual Editor to some custom fields. How can i do it? I did search a lot on google in the past 2 days, but i am not good with PHP so i didnt understand a thing. Basically, when i create a new Post, i have many options (custom fields).
    I can click on a Button to add an additional field, but this field is a normal textarea, and i need it to be a WYSIWYG/TinyMCE.
    The custom fields were made with “Types” Plugin.

    I’ll post a screenshot:
    https://s3.postimg.org/5xt4wu5z7/tinymce.jpg

    If someone can help me i would be really thankfull.

Viewing 8 replies - 1 through 8 (of 8 total)
  • I’m sure more info will be needed to solve this issue, but I would like to point out a few things that I hope will help you find a solution.

    First, the Types plugin should have a admin area where you can view current custom field types, as well as make and change those field types. So that is where you would go to add a wysiwyg editor.

    Second, adding a custom field in the admin area is only half the battle. The next thing you need to do is tell WordPress where to use that new meta data in your theme’s template files.Without doing the second step the content you are adding is simple getting saved to the WordPress database as post metadata.

    To pull metadat you will need to add a get_post_meta call in your theme files.

    Let me know what you find.

    Thread Starter NoctisLc

    (@noctislc)

    i did search around it in the Types admin area, and it says “not under the control of Types”. i did try to add the WYSIWYG from there since you have the option, but nothing changed. There is no group for that field.

    The main problem is my ignorance in the PHP world.
    If you need any information i will provde it, just ask ??

    I’ll post another screen:
    https://s13.postimg.org/3wihxzudj/group.jpg

    Okay. Let’s see. So you will need to create a group and tell types which content type it should show up on. i.e. post, pages, etc..

    Next you will need to add a custom field to that group. In WordPress these groups are more commonly referred to as metaboxes.

    For example, if you create a group and select posts to display it on but do not add a custom field, and you navigate to “create a new post,’ you will see this new group on the post edit screen. However it will not have a field.

    You could just go about creating a new group with a WYSIWYG field type. And associate that to the content type you want. i.e. a post or a page.

    Can you post an image of the current textarea that you are trying to change to a WYSIWYG.

    Thread Starter NoctisLc

    (@noctislc)

    Let’s go step by step.

    First yes, i have all the option you got there, just in my language.
    Second, the textarea i need to add WYSIWYG to is https://s3.postimg.org/5xt4wu5z7/tinymce.jpg This one.

    In wich file can i edit the various custom fields? i am afraid i cannot find anything with Notepad++ by searching in all files.
    I can try to manually add the function in the php files if i can understand wich file is it..

    Thread Starter NoctisLc

    (@noctislc)

    The main problem is, if i add a new Category and link it to the custom fields, nothing changes.

    The benefit to using a plugin like Types is that it allows you to create Custom Post Types and Custom fields without needing to code anything. At least on the backend.

    However, to use the data in those custom fields you will need to make a get_post_meta() call inside your theme to populate that data on the front-end.

    Thread Starter NoctisLc

    (@noctislc)

    No problem. i did find a workaround. since my custom fields were dynamic there was a big issue in implementing the wordpress editor. so i did upload bootstrap editor to appear for those custom fields ! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Types] TinyMCE / WYSIWYG to custom fields’ is closed to new replies.