Forum Replies Created

Viewing 15 posts - 1,561 through 1,575 (of 2,964 total)
  • Author
    Posts
  • in reply to: Default workflow tab not working correctly #4267
    Steve
    Keymaster

    When you activate the Piklist Demos, and add a new Demo, is the first tab highlighted?

    SB

    in reply to: Text area Duplication #4266
    Steve
    Keymaster

    Does this happen on EVERY new post?

    Try this and see if it helps:

    piklist('field', array(
    	'type' => 'textarea'
    	,'scope' => 'post_meta' // Not used for settings sections
    	,'field' => 'project_description'
    	,'label' => 'Project Description'
    	,'description' => 'This is a description of the project.'
    	,'attributes' => array(
    		'rows' => 10
    		,'cols' => 50
    		,'class' => 'large-text'
    	)
     ));
    
    in reply to: Text area Duplication #4264
    Steve
    Keymaster

    I tested this code and it works great for me. Are there any other Piklist meta boxes on the page? If so, make sure none of them have a field called project_description

    in reply to: Specify image size in template? #4263
    Steve
    Keymaster

    @cosmocanuck– Glad you figured it out!

    Since Piklist does everything the WordPress way, in most cases you can use standard WordPress functions to solve your issue. So don’t only look on the Piklist.com site for your answers, any WordPress tutorial on getting images would work.

    Closing ticket.

    in reply to: Default workflow tab not working correctly #4257
    Steve
    Keymaster

    What happens? Which tab is default? Please post a screenshot.

    in reply to: add terms to taxonomy #4256
    Steve
    Keymaster

    Did you register a taxonomy?

    In the demos, you can add terms at Piklist Demos > Demo Taxonomies.

    in reply to: Text area Duplication #4255
    Steve
    Keymaster

    @achowell– This code snippet looks fine. It would help if we can see all your code. Either post here, or email to [email protected]

    in reply to: Taxonomy metabox and widget #4251
    Steve
    Keymaster

    I think I understand now:
    1) Your Piklist Field ‘collections’ should go in the meta-boxes folder.
    2) Building widgets with Piklist is easy. You can follow this doc.

    Let me know if this helps.

    in reply to: Taxonomy metabox and widget #4248
    Steve
    Keymaster

    @redywebs– Welcome to the Piklist community!

    One of the best parts of Piklist is that it’s code-based, which allows you to do almost anything.

    If you only want Editors (or above) to select child terms than you can wrap the field in a conditional statement:

    if(current_user_can('edit_pages')) :
    
    $parents = get_terms('colections', array('hide_empty' => false,'parent' => 0 ));
        foreach ($parents as $parent => $value) {
         
          piklist('field', array(
            'type' => 'checkbox',
            'scope' => 'taxonomy',
            'field' => 'colections',
            'label' => $value->name,
            'choices' => piklist(
                get_terms('colections', array(
                  'hide_empty' => false,
                  'child_of' => $value->term_id
                )),
                array(
                  'term_id',
                  'name'
                )
            )
          ));
        }
    
    endif;
    

    Let me know if that works for you.

    in reply to: displaying widget upload field front-end #4236
    Steve
    Keymaster

    Hey Tyler– Glad to help! If you have a minute, please tell the world how much you love Piklist by leaving a 5 Star review on WordPress.org.

    Closing this ticket.

    in reply to: Add more group with file upload not saving #4234
    Steve
    Keymaster

    @nate9024– Welcome to the Piklist community!

    Glad all is working for you. Closing this ticket.

    in reply to: Get name of option from select field #4230
    Steve
    Keymaster

    Frontend rendering for this type of field isn’t implemented yet. You need to go old school. Try this:

    $yachts_fuel = get_post_meta($post->ID, 'yachts_fuel', true )
    
    switch ($yachts_fuel)
    {
      case 'option1':
          echo 'Πετρέλαιο';
          break;
      case 'option2':
          echo 'Βενζίνη';
          break;
    }
    
    in reply to: Get value from taxonomy select field #4227
    Steve
    Keymaster

    I misunderstood what you wanted. This is the perfect way to do it. Piklist way == WordPress way.

    in reply to: Get value from taxonomy select field #4225
    Steve
    Keymaster

    @vagelis– Easily getting term meta is something that is lacking from WordPress. You have two choices:
    1) Use WordPress function get_metadata.
    2) There’s a helper function in Piklist you can use. get_term_meta works exactly like get_post_meta.

    in reply to: Categories field in quick edit not showing #4223
    Steve
    Keymaster

    Great! Closing ticket.

Viewing 15 posts - 1,561 through 1,575 (of 2,964 total)