Forum Replies Created
-
AuthorPosts
-
azizultexMemberSo I was able to figure out the issue. I had to add header for workflow;
<?php /* Flow: OliverOrange Setting Page: oliveorange_setting Header: true Position: title Clear: true */Thanks
azizultexMemberHi @Steve, it’s already set to 150*150
azizultexMemberHi @Steve, Thanks for your reply.
I couldn’t find Media dimension under Piklist Setting.The only setting I can see is ‘Multiple User Roles’.
azizultexMemberHi,
Thanks for the Jason’s code. I get the function worked with to fetch value for below code:
piklist('field', array( 'type' => 'group' ,'field' => 'social_media' ,'label' => __('Social Media') ,'columns' => 12 ,'add_more' => true ,'fields' => array( array( 'type' => 'text' ,'field' => 'icon' ,'columns' => 2 ,'attributes' => array( 'placeholder' => 'fa fa-facebook' ) ) ,array( 'type' => 'text' ,'field' => 'link' ,'columns' => 7 ,'attributes' => array( 'placeholder' => 'https://www.facebook.com/worksfireinc' ) ), array( 'type' => 'text' ,'field' => 'tooltip' ,'columns' => 3 ,'attributes' => array( 'placeholder' => 'Facebook' ) ) ) ));I need to know if I can also fetch value for a bit advanced metaboxes like below.
<?php piklist('field', array( 'type' => 'group' ,'field' => 'workout_schedule' ,'label' => __('Tasks') ,'columns' => 12 ,'add_more' => true ,'fields' => array( array( 'type' => 'select' ,'field' => 'day' ,'columns' => 12 ,'choices' => array( 'monday' => 'Monday' ,'tuesday' => 'Tuesday' ,'wednesday' => 'Wednesday' ,'thursday' => 'Thursday' ,'friday' => 'Friday' ,'saturday' => 'Saturday' ,'sunday' => 'Sunday' ) ) ,array( 'type' => 'group' ,'field' => 'exercise_day' ,'add_more' => true ,'fields' => array( array( 'type' => 'text' ,'field' => 'exercise' ,'columns' => 8 ,'attributes' => array( 'placeholder' => 'Exercise' ) ) ,array( 'type' => 'text' ,'field' => 'exercise_reps' ,'columns' => 2 ,'attributes' => array( 'placeholder' => 'Reps' ) ) ,array( 'type' => 'text' ,'field' => 'exercise_sets' ,'columns' => 2 ,'attributes' => array( 'placeholder' => 'Sets' ) ) ) ) ) )); ?>Is it possible to fetch value for above metaboxes using Jason’s function?
Thanks
azizultexMemberHi,
I am sorry for the delay to reply you. I tried today, but couldn’t get it worked.I used below code in my metabox that is showing field in post types.
<?php /* Title: My Metabox Description: My cool new metabox Post Type: post */ // Let's create a text box field piklist('field', array( 'type' => 'text' ,'field' => 'exercise' ,'add_more' => true ,'label' => __('Workout') )); ?>I used below code in my single.php file after the_content()
<?php // Get field data $exercise = get_post_meta($post->ID, 'exercise', true); // Get your custom template part: addmore-workout-template.php piklist(get_stylesheet_directory() . '/piklist/add-more-templates/addmore-workout-template', array('data' => $exercise, 'loop' => 'data')); ?>and
addmore-workout-template.phpfile looks like this:<?php echo $data['exercise']; ?>Finally, I receive this error: http://s21.postimg.org/w3o9q8b4n/screenshot_163.png
Where am I doing wrong?
azizultexMemberYes. You are genious. I got it. Actually, I am practicing Piklist in a Twenty Twelve Child Theme. Is there any way so I can change the “TwentyTwelve Child Theme Widgets” name?
Thanks
azizultexMemberHi Steve,
Thanks for your reply. I check but couldn’t find any widget. Please have a look at the attachment.Thanks
Attachments:
You must be logged in to view attached files.
azizultexMemberHi @Steve, Thanks for your reply. that’s rad, but would be great if it didn’t allow to select multiple images instead of sever side validation.
However, Piklist is a tool that I dreamt. A powerful wordpress framework undoubtedly.
Thanks a lot!
azizultexMemberOk. I got the solution. I have to use
echo '<img src="' . wp_get_attachment_url($image_id) . '"/>';
but upload field allow us to add more images. Since I want to use it to upload logo, it should allow only a single upload.How do I do that?
Thanks
azizultexMemberHi,
Thanks for this excellent Framework. I have started using this powerful tool. But I need a little help with media upload on the setting page. Is it fixed yet?Here is what I am using to the logo of the site, but it always shows
20.<?php $theme_options = get_option('my_theme_settings'); $logo = $theme_options['dsffsdfsd']; ?> <img src="<?php echo $logo; ?>" />Could you help me how to get uploaded image link?
Thanks
azizultexMemberHi @Steve, Thanks for your update. I tried the updated code, but it’s still not working.
azizultexMemberHi @Steve, Thanks for your reply. I added the code in my functions.php file but it doesn’t show any message to the user if Piklist isn’t installed or activated on the theme.
I want to achieve a goal to show users a message if piklist isn’t installed in their theme as TGM plugin do.
Need more description? Please let me know
Thanks
azizultexMemberHi,
I’m facing the same problem. I am using piklist in twentytwelve theme with the code below:add_action('init', 'my_init_function'); function my_init_function() { if(is_admin()) { include_once('piklist/class-piklist-checker.php'); if (!piklist_checker::check(__FILE__)) { return; } } }Any help?
-
AuthorPosts