Viewing 7 reply threads
  • Author
    Posts
    • #7172
      smallgreenpinky
      Participant

      Wordpress version: 4.6
      File: wp-content/plugins/piklist/includes/class-piklist-form.php on line 923

      Additional:
      Appearing on the page/post edit (using latest Divi builder and theme for this site)

    • #7243
      vayu
      Member

      Hi.
      I have the same warning displayed when I edit a post (custom post type) in the admin.
      It is shown right below a date field and above the main text wysiwyg field.

      Attachments:
      You must be logged in to view attached files.
    • #7245
      vayu
      Member

      My text field is not saving the text. I then read this thread https://piklist.com/support/topic/editor-field-not-saving-data/. If I remove the scope parameter, the warning disappears. However, then the text is saved to the postmeta table, which is not what I want. It is the post_content field, and I want it saved to the posts table.
      This is how I set the wysiwyg field:

      piklist( 'field', array(
      		'type' => 'editor',
      		'scope' => 'post',
      		'field' => 'post_content',
      		'label' => 'Evt. tekst besked',
      		'value' => '',
      		'options' => array (
      			'wpautop' => true,
      			'media_buttons' => false,
      			'tabindex' => '',
      			'editor_css' => '',
      			'editor_class' => '',
      			'teeny' => false,
      			'dfw' => false,
      			'tinymce' => true,
      			'quicktags' => true
      		)
      	) );
    • #7249
      Steve
      Keymaster

      @vayu– Is the default WordPress editor visible as well? If so, you can’t have both. Let us know what post type this is for and we can help you better.

    • #7252
      vayu
      Member

      Hi Steve.
      The custom post type is called “invoice”. No the default editor is not visible. I have not set it to support it in the code.

      $post_types['invoice'] = array(
      		'labels' 				=> $labels,
      		'title' 				=> __( 'Enter a new Demo Title' ),
      		'publicly_queryable' 	=> true,
      		'exclude_from_search'   => true,
      		'map_meta_cap' 			=> true,
      		'capability_type' 		=> array('invoice', 'invoices'),
      		'public' 				=> true,
      		'hierarchical'          => false,
      		'rewrite' 				=> array( 'slug' => 'faktura', 'with_front' => true, 'pages' => true ),
      		'supports' => array(
      			'author',
      			'revisions',
      			'title',
      			'comments',
      		)
      );
      	return $post_types;
    • #7259
      smallgreenpinky
      Participant

      Love how my thread gets hijacked and I’m ignored.

    • #7265
      vayu
      Member

      @smallgreenpinky, I don’t think you are being ignored. My problem is identical to mine and I have given you a possible solution. Steve is trying to help by getting some more info. 🙂

    • #7277
      Steve
      Keymaster

      @smallgreenpinky– Sorry about that. Not our intention. If you switch to the WordPress standard theme does the message go away?


      @vayu
      – I don’t see anything wrong here. Try copying the editor code from the Piklist Demos and use that. See if that helps.

Viewing 7 reply threads
  • You must be logged in to reply to this topic.