Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
Hi
How can I custom Frontend Publisher, change TinyMCE with full elements, add Media Button?
Please help
Screenshots may help me understand what are you trying to achieve. 🙂 Thanks!
I have successfully changed by enable ‘media_buttons’ in function ‘userpro_post_editor’.
But can you help me pass Content if EDIT CONTENT?
I try pass a post ID but not work.
Any idea?
https://codex.wordpress.org/Function_Reference/wp_editor
You can use
$post_id = 51;
$post = get_post( $post_id, OBJECT, ‘edit’ );
$content = $post->post_content;
wp_editor( $content, $editor_id, $settings );
In frontend-publisher-functions.php file. This will make you edit a post content instead of making new post. But when saving the post content you need to make the ajax aware that you’re saving an existing post.
This will imply the need of wp_update_post() API function.
These are the basics, I can’t provide the full code for this as this is outside the scope of support.
Thank for your support.
and How I can display other user profile like: [userpro template=view userid=1] ??
[userpro template=view user=XXXX]
XXXX can be author or CUSTOM_USERNAME to display a profile of specific user by username.
You must be logged in to reply to this topic.