Forum Replies Created

Viewing 15 posts - 376 through 390 (of 2,964 total)
  • Author
    Posts
  • in reply to: Menu placement for CPT #8758
    Steve
    Keymaster

    Piklist doesn’t do this for you. The way we would do it, is to manipulate the $menu and $submenu globals. Here’s a good tutorial >

    in reply to: Creating an Issue Tracker #8751
    Steve
    Keymaster

    @rob19805– Welcome to the Piklist community!

    Piklist is not ready for custom tables.

    in reply to: Comparison Question: MetaBox #8750
    Steve
    Keymaster

    Hi Sean– We’ve never used metabox.io. Maybe someone else in the community can give some feedback.

    in reply to: forms tutorial? #8745
    Steve
    Keymaster
    in reply to: File Upload Field – order strange behavior #8743
    Steve
    Keymaster

    Can you please test the latest beta and let us know if it fixes the issue.

    in reply to: 2 field questions #8739
    Steve
    Keymaster

    Any tutorial you find on converting a number field to currency would work

    Here’s one I found: http://jsfiddle.net/uzbjve2u/. You don’t need the javascript. Pass min and max as attributes in the Piklist field.

    For a field that not’s editable you can use the standard HTML attribute readonly:
    https://www.w3schools.com/tags/att_input_readonly.asp

    
      piklist('field', array(
        'type' => 'text'
        ,'field' => 'name'
        ,'label' => 'Name'
        ,'attributes' => array(
          'readonly' => 'readonly'
        )
      ));
    
    in reply to: Front-end Template for Plugin #8734
    Steve
    Keymaster

    Creating a theme template that’s compatible with all themes is not that easy.

    Piklist automatically registers a shortcode when you create a form. That’s the most flexible way to do. Let your users add a shortcode.

    If you want to add a page template from your plugin, then this tutorial looks good >

    in reply to: Assigning taxonomies to multiple cpts #8733
    Steve
    Keymaster

    Passing an array should work.

    If you can’t get that to work, you can use the WordPress function register_taxonomy_for_object_type()

    in reply to: Search/Add Type Relationship? #8732
    Steve
    Keymaster

    You can build this with Piklist, but it’s a little complicated. You would need:

    1) A field to search for Post Types: this already exists in the Piklist Demos, under the “Relate” tab. It’s checkboxes, but you can easily change it to a select. Then integrate Select2 or Chosen with that Piklist field.

    2) Add new Post: Again, under the “Relate” tab, in “Advanced” you can add a new post.

    It will take some work to make it work exactly like Tags. You may want to be flexible on functionality.

    in reply to: Search/Add Type Relationship? #8725
    Steve
    Keymaster

    I’m not clear on what you’re asking. However, you may want to check out the RELATE tab under Piklist Demos. We relate some posts there.

    in reply to: What's the piklist-demo represent? #8724
    Steve
    Keymaster

    ‘piklist-demo’ is the name of the plugin. It’s used if you want your plugin or theme to be translatable into another language. You can learn more here >

    If this is for an internal project, and you won’t need translations, then you can use:
    ,'label' => 'Text'

    in reply to: Modular plugins like your add-ons demo #8720
    Steve
    Keymaster

    Hi Sean– I just added some information on creating Piklist add-ons in the docs. Let me know what you think.

    in reply to: Getting the value of a setting #8719
    Steve
    Keymaster

    Glad you’re enjoying using Piklist. One thing Kevin and I made sure of was that Piklist did everything the WordPress way, and also saved data normally. Usually, any tutorial you find on the web, on getting options, will work. It doesn’t have to be a Piklist specific tutorial.

    in reply to: Front-end Template for Plugin #8716
    Steve
    Keymaster

    Good luck! Let us know if you need any help

    in reply to: Getting the value of a setting #8715
    Steve
    Keymaster

    WordPress saves settings in an array. And when you set a field group in Piklist, those fields are saved in an array… so you’re saving a multidimensional array. Which is perfectly legit, but a little more difficult to get data out of.

    You have two choices:
    1) Use this to get options from your current field: $text_field = $theme_options['cpt_list']['common_features'];
    2) Or get rid of ,'field' => 'cpt_list', which now saves all your settings in a standard array. There are certainly cases where you want to store data multidimensionally, but based on the field you submitted it doesn’t look like you need it. You can then use: $text_field = $theme_options['common_features'];

    Either way is perfectly acceptable.

Viewing 15 posts - 376 through 390 (of 2,964 total)