Forum Replies Created

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • in reply to: URL Field #6703

    Hi, Steve.
    It works. I think you already knew that did. Thank you.

    I created a group, but he accuses an error. See ***
    You know how to solve it?

    piklist(‘field’, array(
    ‘type’ => ‘group’
    ,’field’ => ‘links’
    ,’label’ => __(‘Links’)
    ,’add_more’ => true
    ,’fields’ => array(
    array(
    ‘type’ => ‘url’ // HTML5 url field
    ,’field’ => ‘my_url’
    ,’columns’ => 10
    ,’template’ => ‘field’
    ,’attributes’ => array(
    ‘class’ => ‘regular-text’
    )
    )
    $my_url = get_post_meta($post->ID, ‘my_url’, true); // Get the value of the field above ***(ERROR)
    ,array(
    ‘type’ => ‘html’
    ,’template’ => ‘field’
    ,’value’ => !empty($my_url) ? ‘ID, ‘my_url’, true) . ‘”>Go Url‘ : ” // if a url has been entered, show it. If not, show nothing.
    ,’columns’ => 2
    )
    )
    ));

    in reply to: Set post status by default #6672
    in reply to: Set post status by default #6671

    Hi,

    I found a simple way to make it work.

    Define private status, as the first item of the array.
    Thus this becomes the default status.
    Once saved with private status, visibility also becomes private.

    **The code was inserted in the same file that registered the custom post type (main plugin file, or file include), and not in the file meta-boxes.

    add_filter(‘piklist_post_types’, ‘my_post_type’);
    function my_post_type($post_types)
    {
    $post_types[‘myposttype’] = array(
    .
    .
    .
    .

    ,’status’ => array(
    ‘private’ => array(
    ‘label’ => ‘Private’
    )
    ,’draft’ => array(
    ‘label’ => ‘Draft
    )
    )

    .
    .
    .
    return $post_types;
    }

    in reply to: Mask in Fields #6649

    Hello Steve,
    To begin, I would like to congratulate the whole team.
    I started using the piklis 05 days ago.
    Documentation is exemplified.
    The sample demo of the plugin also allows you to check things work.
    I have enough experience with WordPress, but not as a developer. I am developing for Win32 (use Cllarion as language)
    I am very excited about what I did and I wonder what I can still do.
    Piklist is already becoming an addiction.
    I have managed to come up with the code of a well quickly. The learning curve is easy, piklist does the hard work.
    Php7, html5 and codex reference, has helped me a lot to learn some concepts.
    It’s been a while I know the piklist. I’ve been looking for Rolopress and was led to piklist. My first printout, seemed complicated though full of features.
    It seemed easy and simple so I set out to use.
    Do not get to be anxious for new updates, I still have a long way that has shown rapid advances, but I expect version 1.0 and addons.

    in reply to: Mask in Fields #6620

    The field belongs to a group.

    ,array(
    ‘type’ => ‘number’
    ,’field’ => ‘cep’
    ,’size’ => ‘9’
    ,’maxlength’ => ‘9’
    ,’pattern’ => ‘\d{5}[\-]\d{3}’
    ,’message’ => ‘Dude, you are outside the zone.’
    ,’placeholder’ => ‘16901-003′
    ,’label’ => __(‘CEP’, ‘piklist-demo’)
    ,’columns’ => 3
    )

    I need to do some validation?

    in reply to: Mask in Fields #6617

    I found this topic.

    Phone Number Inputs

    +99(99)9999-9999

    ‘pattern’ => ‘[\+]\d{2}[\(]\d{2}[\)]\d{4}[\-]\d{4}’

    But the pattern and placeholder does not work.

Viewing 6 posts - 16 through 21 (of 21 total)