Forum Replies Created

Viewing 15 posts - 46 through 60 (of 72 total)
  • Author
    Posts
  • in reply to: PikList and theme customizer #1984
    kattagami
    Member

    It could be great if Piklist will support customizer in a futur release especially to use the Piklist Widget in it because Customizer takes more and more importance in WordPress.

    Is it in your to-do list?

    in reply to: Display the_content in a metabox #1978
    kattagami
    Member

    No need to wrap the “echo $post->post_content;” in a loop.

    Just copy/past this line in your piklist-metabox.php: echo $post->post_content;

    in reply to: Display the_content in a metabox #1858
    kattagami
    Member

    Ok I’ve found, be careful the solution is complex :

    echo $post->post_content;
    
    in reply to: Hide meta box with Capability, bug? #1843
    kattagami
    Member

    If I look what wp_get_current_user() return, I can see that my “Suscribers” have a lot of capabilities set to “True” like “edit_others_posts”

    I don’t know why, probably an effect of another plugin. I’m still looking for …

    Thanks Steve for your advices.

    in reply to: Hide meta box with Capability, bug? #1837
    kattagami
    Member

    Yep, this is my code:

    add_filter( 'piklist_post_types' , 'projets_post_type' );
    function projets_post_type( $post_types ) {
    	$post_types[ 'projets' ] = array(
    				'labels' => piklist( 'post_type_labels' , 'Projet'),
    				'title' => __( 'Entrer un nouveau titre de projet' ),
    				'public' => true,
    				'menu_position' => 5,
    				'rewrite' 	=> array(
      							slug' => 'projets',
    							),
    				'supports' 	=> array(
      							'title',
      							'editor',
    							),
    				'hide_meta_box' => array(
      							'slug',
    					  		'author',
    					  		'revisions',
    					  		'comments',
    					  		'commentstatus',
    							),
    								);
    return $post_types;
    }
    in reply to: Missing default user profile #1829
    kattagami
    Member

    Same bug for me.

    Apache + Linux server
    Multisite installation 3.9

    in reply to: Add_More issues #1807
    kattagami
    Member

    add_more doesn’t works with a ‘File’ type field too.

    So to recap, at the moment, we can’t use the following type fields in an add_more:

    – Edit
    – textarea
    – html
    – file

    These fields display outside the add-more box and don’t repeat when we click on the “+” button.
    Hope you will find a solution to integrate these fields in add-more in the next release πŸ˜‰

    in reply to: checkbox: select/deselect all #1741
    kattagami
    Member

    Found a solution with this tuto: http://www.sanwebe.com/2014/01/how-to-select-all-deselect-checkboxes-jquery

    Works well πŸ™‚

    (PS: for the “All” input checkbox, I use a html Piklist field)

    in reply to: Add_More issues #1739
    kattagami
    Member

    You’re right for the third point, I didn’t see this post πŸ˜‰

    And for the two first point:

    1- add_more doesn’t works with a html field.
    2- If I put a textarea field to the end of an add_more group field, the textarea is not embed in the group fields.

    Can you reproduce these bugs or is it specific to my environment?

    kattagami
    Member

    Hello Steve,

    You said :

    “Open class-piklist-cpt.php and find the wp_insert_post_data function. Change the IF statement to this:
    if (($data['post_status'] != 'auto-draft') && (($data['post_title'] == 'Auto Draft') || empty($data['post_title']))) That fixes the bug.”

    Do you plan to change the piklist core in a next update with this code ?
    I don’t see the change in your last 0.9.3.3 version.

    in reply to: Bug? The editor field doesn't save the data in my CPT. #1709
    kattagami
    Member

    Effectively, with scope=’post_meta’, works like a charm now πŸ™‚
    Thx both of you.

    kattagami
    Member

    With my first function and your solution, I can now add and update my title’s custom Post the way I described in my first message.

    Thanks πŸ™‚

    kattagami
    Member

    Thank you Steve for your help.

    Your code works with a few change. Because my two fields are embed in a “name_group” group field, I replaced

    $post_array['_post_meta']['firstname'][0]
    by
    $post_array['_post_meta']['name_group']['firstname'][0]

    But now I can’t update the title: if I edit and change my fields ‘first and lastname’ the title doesn’t change.
    I think I can resolve this with ‘wp_update_post()’. I’m going to investigate this idea next sunday, I will be to the Zurich Wordcamp on friday and saturday πŸ˜‰

    in reply to: forms tutorial? #1649
    kattagami
    Member

    A Frontend forms in Piklist … great news πŸ™‚ I’m looking forward to see this feature!

    Do you plan to implement the “Add-more” fields and group-fields in this frontend form ?

    in reply to: Notice with Attach File #436
    kattagami
    Member

    I tried to use the Attach File field in a Settings tab but it doesn’t save the data.

Viewing 15 posts - 46 through 60 (of 72 total)