Forum Replies Created
-
AuthorPosts
-
SteveKeymasterThis 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
choicesarray: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' ) ));
SteveKeymaster@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; ?>
SteveKeymaster
SteveKeymasterYou are outputting “put some stuff here”. Replace it with
<?php echo $settings['article_widget_title']; ?>
SteveKeymasterThis 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 >
SteveKeymasterI really don’t understand.
The quickest way to get help is to provide one or more of the following:
-Screenshot
-Screencast
-Code snippet
SteveKeymaster@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.
SteveKeymasterAUTHOR
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 thesupportparameter, and remove them from here:,'hide_meta_box' => array( 'slug' ,'comments' ,'commentstatus' )
SteveKeymasterYou’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
supportsparameter at all to get the WordPress defaults.
SteveKeymaster@mjenn123– If you want, please zip up your code and email to [email protected]
SteveKeymasterI can’t reproduce. Do you have the time to meet me on Skype to try and debug? My Skype ID is steve.bruner.
SteveKeymaster@s1r0n– The overlay was conflicting with Jetpack and should have been fixed months ago. What other plugins do you have installed?
SteveKeymaster@mjenn123– This is working for me. The only difference is that I associated
band_shadewith Post, since I don’t have the CPTsms_bandregistered.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 >
SteveKeymasterThere is a known bug for duplicate upload fields in the same meta box. Try placing them in separate boxes.
-
AuthorPosts