Adding photos to the campaign in the tinymce editor
-
Hey!
I would like to understand how to enable the function of uploading photos to a post via tinymce editor or some other plugin. I wanted to do this by editing the file located in:/wp-fundraising-donation/views/public/fundraising/dynamic-page/dashboard/add-campaign/campaign-intro.php
<?php $post_content = isset( $post_data->post_content ) ? $post_data->post_content : ''; $editor_id = 'campaign_details_editor'; $settings = array( 'media_buttons' => false, 'textarea_name' => 'campaign_post[post_content]', 'drag_drop_upload' => true, ); wp_editor( $post_content, $editor_id, $settings ); ?>
I found there the code responsible for disabling the button to hide adding media, I changed it to “true” and the button showed up, however, it shows all photos in the wordpress gallery, including other users, and I can’t add a photo. I want it to be easy to add photos to a fundraiser.
Alternatively, it can be replaced with gutenberg, in which case please give instructions on how to do it ??
I would appreciate any help or code to help me do this.
- The topic ‘Adding photos to the campaign in the tinymce editor’ is closed to new replies.