Forum Replies Created
-
AuthorPosts
-
carassius
ParticipantThanks for that, I will take a look at switching everything over to ACF Pro
carassius
ParticipantAny chance of getting display settings setup for the users field? At the moment it displays the "Display name publicly as" field.
I am adding custom metaboxes into the user and would love to be able to use one of those for the select display?
carassius
ParticipantFound the problem, there is nothing wrong with my function, the plugin was not actually loading when being included within the plugin I am creating.
So once the groups extension activated properly, all is great again.
Thanks for a great product
carassius
ParticipantLet me revisit this with you
I have my bl-settings.php file in the root directory of my plugin
I also have the mb-settings-page folder in my plugins root directoryThis is how I am trying to call them
// Settings function fp_add_meta_settings() { if( !class_exists( 'MB_Settings_Page' ) ) { include( plugin_dir_path( __FILE__ ) . 'mb-settings-page/mb-settings-page.php'); } } add_action( 'plugins_loaded', 'fp_add_meta_settings' ); include( dirname( __FILE__ ) . '/bl-settings.php');In my bl-settings.php i am trying to load my settings page as a sub-directory for the Plugins page, so i have the following code
function bl_settings_pages( $settings_pages ) { $settings_pages[] = array( 'id' => 'bl-options', 'option_name' => 'bl_options', 'parent' => 'plugins.php', 'submenu_title' => __( 'BeaverLodge HQ', 'fl-builder' ), ); return $settings_pages; } add_filter( 'mb_settings_pages', 'bl_settings_pages' ); function bl_options_meta_boxes( $meta_boxes ) { $meta_boxes[] = array( 'id' => 'fotoplugins', 'title' => __( 'Fotoplugins Settings', 'fl-builder' ), 'settings_pages' => 'bl-options', 'fields' => array( array( 'name' => __( 'Disable Gallery CPT', 'fl-builder' ), 'id' => 'gallery_cpt', 'type' => 'select', 'syd' => 'no', 'options' => array( 'no' => 'No', 'yes' => 'Yes', ), ), ), ); return $meta_boxes; } add_filter( 'rwmb_meta_boxes', 'bl_options_meta_boxes' );I am getting really frustrated getting this to work, someone help please
carassius
ParticipantAnyone able to help me get this thing to work? Hello?
carassius
Participantdetails have beens ent
carassius
ParticipantI really need to get this fixed, this is in a commercial plugin and I have clients depending on it. So any idea on what could be the cause?
carassius
ParticipantNone showed up
carassius
ParticipantThey all have
'columns': 6/*************************** * create contact metaboxes ***************************/ function p52_contact_before_meta_boxes( $meta_boxes ) { $prefix = 'p52_contact_'; // contact info meta box $meta_boxes[] = array( 'id' => $prefix . 'contact', 'title' => 'Contact Info', 'pages' => array('p52-contact'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'Company', 'id' => $prefix . 'company', 'type' => 'text', 'columns' => 6 ), array( 'name' => 'Relationship', 'id' => $prefix . 'relationship', 'type' => 'select', 'options' => array( 'prospect' => 'Prospect', 'lead' => 'Lead', 'client' => 'Client', 'agency' => 'Agency', 'contractor' => 'Contractor', 'assitant' => 'Assistant', 'supplier' => 'Supplier' ), 'placeholder' => 'Choose your relationship', 'columns' => 6 ), array( 'name' => 'Phone', 'id' => $prefix . 'phone', 'type' => 'text', 'columns' => 6 ), array( 'name' => 'Email', 'id' => $prefix . 'email', 'type' => 'text', 'columns' => 6 ), array( 'name' => 'Address', 'id' => $prefix . 'address', 'type' => 'textarea', 'columns' => 6 ), array( 'name' => 'Postal Address', 'id' => $prefix . 'postal', 'type' => 'textarea', 'columns' => 6 ), ) );carassius
ParticipantI was able to fix with adding in some admin css, but that is a work around, not a solution to the problem
div#p52_contact_contact {
height: 300px;
}carassius
Participanti still cannot get this to work
carassius
ParticipantOk, I installed the settings page as per a normal plugin and it failed so it is loading in my plugin, so my
fp_add_meta()function is working.That means my
bl_plugin_pagefunction is not.I tried the example code (which by the way is wrong)
add_filter( 'mb_settings_pages', 'prefix_settings_pages' ); function prefix_settings_pages( $settings_pages ) { $settings_pages[] = array( 'id' => 'my-options', 'option_name' => 'my_options', 'menu_title' => __( 'Options', 'textdomain' ), 'icon_url' => 'dashicons-images-alt', 'submenu_title' => __( 'Settings', 'textdomain' ), // Note this ); $settings_pages[] = array( 'id' => 'my-options-im', 'option_name' => 'my_options', 'menu_title' => __( 'Import', 'textdomain' ), 'parent' => 'my-options', // Note this ); $settings_pages[] = array( 'id' => 'my-options-ex', 'option_name' => 'my_options', 'menu_title' => __( 'Export', 'textdomain' ), 'parent' => 'my-options', ); return $settings_pages; } ); // why does this end in );?And still no joy, so clearly something must be wrong??
carassius
Participantresolved
carassius
Participantyeah I have it working the same way (well should be) with get_post_meta and changed to use the rwmb_meta, but I get the same problem using either method, the variable is not echoing
$images = rwmb_meta( 'sw_gallery_image', 'type=image' ); foreach ( $images as $image ) { $imgID = $image['ID']; $url = rwmb_meta( 'sw_link', 'type=url', $imgID ); echo "<a href=' . $url . '></a>";If I do a
var_dump($url);I get the metabox value return, but in the link it isnt, any suggestions?this was my post_meta
$url = get_post_meta($imgID, 'sw_link');carassius
ParticipantI have the meta in the attachment post but cannot get the value in the front end?
Code:$prefix = 'sw_'; // media meta box $meta_boxes[] = array( 'id' => 'href', 'title' => 'Link for Horizontal Gallery', 'pages' => array('attachment'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'URL', 'id' => $prefix . 'link', 'type' => 'url', ), ) );But
$links = rwmb_meta( 'sw_link', 'type=url' );doesnt return any value when I do a var_dump?
That is why I was trying to find that tutorial I thought I had seen before -
AuthorPosts