Forum Replies Created

Viewing 15 posts - 541 through 555 (of 2,964 total)
  • Author
    Posts
  • in reply to: shortcode output #7733
    Steve
    Keymaster

    @morganrt– Using echo with Piklist is fine. The framework takes care of the placement for you.

    in reply to: Validate empty field #7732
    Steve
    Keymaster

    @johnvanham– We can look into this, but just a thought. Maybe insert some default text in the field. Something you would use instead of placeholder text.

    in reply to: Multipe post-relate #7731
    Steve
    Keymaster

    @levipe– That’s really odd. And I wasn’t able to reproduce. Are you sure the one post in the grape cpt was “published”?

    in reply to: Contact form inside metabox on any post page (in the admin)? #7730
    Steve
    Keymaster

    @ssuess– I would create a metabox with all the fields you want:

    -author email: gets pulled in automatically
    -message

    Then in your regular plugin file or themes functions.php try something like this:

    function email_on_post_status($post_id)
    {
    	global $post, $typenow;
    
    	
    	$post_status = get_post_status($post_id);
    
    	//verify post is not a revision
    	if (!wp_is_post_revision($post_id) && !wp_is_post_autosave($post_id))
    	{
              //use get_post_meta to get author email and message. Pass to wp_mail
    
    	 wp_mail($params);
    	}
    }
    add_action('save_post', 'email_on_post_status', 1, 2);
    add_action('transition_post_status', 'email_on_post_status', 10, 3);
    in reply to: Piklist add_editor_style #7729
    Steve
    Keymaster

    @utilityla– Welcome to the Piklist community!

    are you removing the default editor with remove_post_type_support? Try enabling and let us know if that works.

    in reply to: Save Multi-Dim Array into Repeater Field #7728
    Steve
    Keymaster

    @gabriel– Welcome to the Piklist community!

    Can you post an example of your code here?

    in reply to: Piklist Widget doesn't save when using addable field #7727
    Steve
    Keymaster

    @nirjhor– Do the widgets in Piklist demos work?

    in reply to: User to post relationship #7726
    Steve
    Keymaster

    @friendlyfire3– you would enter the user login into that text field.

    If you want to display a dropdown of users to choose from, this tutorial should help >

    in reply to: Incompatible with Beaver Builder #7725
    Steve
    Keymaster

    @bubdev– Thanks for letting us know.

    in reply to: Meta boxes data lost #7703
    Steve
    Keymaster

    @trosario– I can’t reproduce the error. Using your code and db, WP 4.6, default theme and no plugins except Piklist, it works for me. See attached screenshots.

    Did you try changing to the default theme to see if that helps?

    Attachments:
    You must be logged in to view attached files.
    Steve
    Keymaster

    @cyclissmo– Looks like you found a bug. I’ll add it to the list we’re working on, but I’m not sure it will get fixed quickly. We’re still fixing older bugs and writing unit tests.

    in reply to: Creating additional settings for users #7689
    Steve
    Keymaster

    @kcarwile– Welcome to the Piklist community!

    Unfortunately, having two Workflows on the user pages can cause issues. Not really a way around it.

    Wish I had better news.

    in reply to: Meta boxes data lost #7688
    Steve
    Keymaster

    Please email fields to [email protected]

    in reply to: User to post relationship #7687
    Steve
    Keymaster

    Assuming this is in wp-admin, and when creating/editing a post. Try this (untested):

    piklist('field', array(
      'type' => 'group'
      ,'scope' => 'user'
      ,'label' => 'User'
      ,'relate' => array(
        'scope' => 'post'
      )
      ,'fields' => array(
        array(
          'type' => 'text'
          ,'label' => 'Login'
          ,'field' => 'user_login'
          ,'columns' => 6
        )
      )
    ));
    
    // Display related users
    $related = get_users(array(
      'order' => 'DESC'
      ,'user_belongs' => $post->ID
      ,'user_relate' => 'post'
    ));
    ?>
    
    <?php if ($related): ?>
    
      <h4><?php _e('Related Users', 'piklist-demo');?></h4>
    
      <ol>
        <?php foreach ($related as $related_user): ?>
          <li><?php _e($related_user->user_login); ?></li>
        <?php endforeach; ?>
     </ol>
    
    <?php endif; ?>
    in reply to: Populate custom post type with data from external api #7686
    Steve
    Keymaster

    @whysr– Welcome to the Piklist community!

    I guess my first question would be: how would you do it without Piklist? Just normal PHP/WordPress. Then we can figure out how Piklist can help.

Viewing 15 posts - 541 through 555 (of 2,964 total)