Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • in reply to: Creating Tabbed Setting Page #6877
    azizultex
    Member

    So 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

    in reply to: Attachment is too large in Admin #5156
    azizultex
    Member

    Hi @Steve, it’s already set to 150*150

    in reply to: Attachment is too large in Admin #5152
    azizultex
    Member

    Hi @Steve, Thanks for your reply.
    I couldn’t find Media dimension under Piklist Setting.

    The only setting I can see is ‘Multiple User Roles’.

    in reply to: Add A Metabox Right Side of Editor #3380
    azizultex
    Member

    Ah! There is. Thanks @jcrist

    in reply to: Getting index of Add More items while in the loop #3139
    azizultex
    Member

    Thanks @Jason, I will will look at this.

    in reply to: Getting index of Add More items while in the loop #3132
    azizultex
    Member

    Hi,

    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

    in reply to: Advanced Add More in Setting Page #3131
    azizultex
    Member

    Hi,
    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.php file 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?

    in reply to: Can't see widget in Admin Panel #3057
    azizultex
    Member

    Yes. 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

    in reply to: Can't see widget in Admin Panel #3054
    azizultex
    Member

    Hi 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.
    in reply to: media upload #3040
    azizultex
    Member

    Hi @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!

    in reply to: media upload #3018
    azizultex
    Member

    Ok. 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

    in reply to: media upload #3017
    azizultex
    Member

    Hi,
    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

    in reply to: Piklist Checker Doesn't Seem to Be Working #2957
    azizultex
    Member

    Hi @Steve, Thanks for your update. I tried the updated code, but it’s still not working.

    in reply to: Piklist Checker Doesn't Seem to Be Working #2948
    azizultex
    Member

    Hi @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

    in reply to: Piklist Checker Doesn't Seem to Be Working #2902
    azizultex
    Member

    Hi,
    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?

Viewing 15 posts - 1 through 15 (of 15 total)