Forum Replies Created

Viewing 15 posts - 2,446 through 2,460 (of 2,964 total)
  • Author
    Posts
  • in reply to: dont display value in metabox #1816
    Steve
    Keymaster

    This is working correctly. The KEY, “option1”, is being saved. You would either need to change the key to “red”, or convert it from key to value. Probably the easiest way is the change the choices array:

    piklist('field', array(
        'type' => 'select'
        ,'field' => 'j_select'
        ,'label' => 'Select Box'
        ,'description' => 'Choose from the drop-down.'
        ,'help' => 'This is help text.'
        ,'attributes' => array(
          'class' => 'text'
        )
        ,'choices' => array(
          'red' => 'red'
          ,'blue' => 'blue'
          ,'yellow' => 'yellow'
        )
      ));
    in reply to: Widget #1813
    Steve
    Keymaster

    @s1r0n– This works for me:

    FILE: global-scholar-article.php

    <?php
    /*
    Title: Global Scholar Article Widget
    Description: Output article information, social links, etc.
    */
    ?>
    <?php echo $before_widget; ?>
     
    <?php echo $before_title; ?>
    
    <?php echo $settings['article_widget_title']; ?>
    
    <?php echo $after_title; ?>
     
    <?php echo $after_widget; ?>
    in reply to: Hidden type field? #1812
    Steve
    Keymaster
    in reply to: Widget #1809
    Steve
    Keymaster

    You are outputting “put some stuff here”. Replace it with <?php echo $settings['article_widget_title']; ?>

    in reply to: Widget #1806
    Steve
    Keymaster

    This code sample looks like a Widget OUTPUT file. It looks like you have a Widget SETTINGS file saved as well that is causing the widget to display that field. You can learn more about Widgets here >

    in reply to: My Demo Metabox #1804
    Steve
    Keymaster

    @s1r0n

    I really don’t understand.

    The quickest way to get help is to provide one or more of the following:
    -Screenshot
    -Screencast
    -Code snippet

    in reply to: My Demo Metabox #1802
    Steve
    Keymaster

    @s1r0n– If you deleted the file then the metabox should go away. Guessing you still have it somewhere else.

    What sort of upgrade routine do you want to write? Piklist makes it super easy. Just write it like you are upgrading ONE site. Piklist will handle MULTISITE installs.

    You can see an example here >

    in reply to: custom post #1799
    Steve
    Keymaster

    AUTHOR
    I just tested this code and I’m getting the author box, so check the Screen Options at the top of the page and make sure it’s there.

    COMMENTS
    Make sure they are added to the support parameter, and remove them from here:

    ,'hide_meta_box' => array(
          'slug'
          ,'comments'
          ,'commentstatus'
        )
    in reply to: custom post #1796
    Steve
    Keymaster

    You’re only supporting author and revisions here:

    ,'supports' => array(
          'author'
          ,'revisions'
        )

    If you want title and editor you need to declare it like this:

    ,'supports' => array(
          'author'
          ,'revisions'
          ,'title'
          ,'editor'
        )

    Or not use the supports parameter at all to get the WordPress defaults.

    in reply to: Taxonomy field not saving on CPT #1791
    Steve
    Keymaster

    @mjenn123– If you want, please zip up your code and email to [email protected]

    in reply to: Getting rid of overlay #1790
    Steve
    Keymaster

    I can’t reproduce. Do you have the time to meet me on Skype to try and debug? My Skype ID is steve.bruner.

    in reply to: Getting rid of overlay #1788
    Steve
    Keymaster

    @s1r0n– The overlay was conflicting with Jetpack and should have been fixed months ago. What other plugins do you have installed?

    in reply to: Taxonomy field not saving on CPT #1783
    Steve
    Keymaster

    @mjenn123– This is working for me. The only difference is that I associated band_shade with Post, since I don’t have the CPT sms_band registered.

    Also, do you have the necessary comment block at the top of: /parts/meta-boxes/band_shade.php ? Here is the doc on the comment block >

    in reply to: Grouping User taxonomies #1782
    Steve
    Keymaster

    @norboo– Glad the tutorial worked for you. Thanks for the great idea.

    in reply to: Image File fields for User profile #1776
    Steve
    Keymaster

    There is a known bug for duplicate upload fields in the same meta box. Try placing them in separate boxes.

Viewing 15 posts - 2,446 through 2,460 (of 2,964 total)