Forum Replies Created

Viewing 15 posts - 2,506 through 2,520 (of 2,964 total)
  • Author
    Posts
  • in reply to: Unable to remove add_more fields in post edit #1644
    Steve
    Keymaster

    @jason

    If you remove the “columns” attribute that will temporarily fix the issue.

    in reply to: Add Revisions Support for CPT metadata #1639
    Steve
    Keymaster

    I apologize. My comment was misleading. Piklist does support metadata revisions but only if post_title, post_content or post_excerpt are updated… which is the WordPress default. We will eventually tackle this and make it better.

    This plugin seems to do what you want. We have never tried it, and if you do, please let us know how it works. Maybe we can move part of it into Piklist.

    in reply to: Add Revisions Support for CPT metadata #1637
    Steve
    Keymaster

    Revision support for post metadata is supported in Piklist. If you take a post, change data in some Piklist fields and save, you will see the entry in the wp_post and wp_postmeta tables. However, the UI for viewing this data in the WordPress admin has not been created… yet.

    Here is an article I found on how to implement. We haven’t tested this.

    in reply to: wp-helpers 'breaks' after plugin install #1632
    Steve
    Keymaster

    -Activate Helpers.
    -Click on the “Develop” tab.
    -Check “Show System Information”.
    -Go to TOOLS > SYSTEM.
    -Copy everything in the top box, and email to support at piklist com.

    in reply to: wp-helpers 'breaks' after plugin install #1630
    Steve
    Keymaster

    We cannot reproduce. If you wouldn’t mind, could you deactivate each of your plugins and see if the error goes away? Then we would know which plugin is conflicting with WP Helpers.

    in reply to: Text Editor Add_More issue #1627
    Steve
    Keymaster

    You found a bug. The Editor in a grouped add_more doesn’t work properly.

    Steve
    Keymaster

    @epica– Not sure how this is related to Helpers, but try clicking on SETTINGS > PERMALINKS. That should flush your rewrite rules.

    in reply to: wp-helpers 'breaks' after plugin install #1620
    Steve
    Keymaster

    @alwaysonline– Are you running the latest version of WP Helpers and Piklist?

    in reply to: Media Fields display wrong #1615
    Steve
    Keymaster

    Yup, it’s a bug. Not just for your code, but in Piklist Demos as well.

    in reply to: Displaying post meta from advanced add_more grouped fields #1608
    Steve
    Keymaster

    This is much, much easier than you think.

    FIRST, LET’S LOOK AT THE ARRAY OUTPUT:
    Each “add-more” array level is going to need it’s own template file. So, you will have a main one, and then another for tier_features.

    Array
    (
        [tier_name] => Array
            (
                [0] => Tier Name 1
                [1] => Tier Name 2
            )
    
        [tier_price] => Array
            (
                [0] => $1
                [1] => $2
            )
    
        [example_url] => Array
            (
                [0] => www.1.com
                [1] => www.2.com
            )
    
        [tier_features] => Array
            (
                [0] => Array
                    (
                        [feature_name] => Array
                            (
                                [0] => feature 1-1
                                [1] => feature 1-2
                            )
    
                    )
    
                [1] => Array
                    (
                        [feature_name] => Array
                            (
                                [0] => feature 2-1
                                [1] => feature 2-2
                            )
    
                    )
    
            )
    
    )

    YOU DON’T NEED TO WRITE YOUR OWN LOOP, BECAUSE PIKLIST WILL LOOP THROUGH THE ARRAY.
    In the existing WordPress loop in your theme, add this code. It would probably go where the_content() is being displayed.

    // Get the post meta information
    $pricing = get_post_meta($post->ID, 'pricing_tier_group', true);
    
    // 1. Display the data using the file pricing_tier_group_template.php.
    // 2. Assign your $pricing parameter (from above) to data.
    // 3. Loop through data.
    piklist('pricing_tier_group_template', array('data' => $pricing, 'loop' => 'data'));

    YOUR FIRST PAGE TEMPLATE: pricing_tier_group_template.php
    -Display data from the first level of your add-more array: (i.e. echo $data['tier_name'])
    -To display the second level of your add-more array, you need to create another page template.
    -The second level is showing the list items, so the template should be called in the ul.
    1. Display the data using the file pricing_tier_feature_template.php.
    2. Assign your $data[‘tier_features’] parameter.
    3. Loop through data.
    piklist('pricing_tier_feature_template', array('data' => $data['tier_features'], 'loop' => 'data'));

    <footer class="product-footer product-tiers">
            <div class="grid">
                <div class="grid__item one-whole desk-one-half">
                    <div class="product-tier first">
                        <div class="grid__item one-half">
                            <h3 class="product-tier-name"><?php echo $data['tier_name']; ?></h3>
                            <span class="tier-price"><?php echo $data['tier_price']; ?></span>
                            <a href= EXAMPLE URL><?php echo $data['example_url']; ?></a>
                        </div><!--
                        --><div class="grid__item one-half">
                            <ul class="check-list">
                                <?php piklist('pricing_tier_feature_template', array('data' => $data['tier_features'], 'loop' => 'data')); ?>
                            </ul>
                        </div>
                    </div> <!-- end product-tier -->
                </div><!--
            -->
            </div> <!-- end grid row -->
        </footer>

    THE SECOND PAGE TEMPLATE, pricing_tier_feature_template.php IS JUST ONE LINE:

    <li><?php echo $data['feature_name']; ?></li>

    Let me know if this helps.

    I will update the docs to better reflect multiple levels of add-mores.

    in reply to: Getting Error When Modifying Post Date/Time #1598
    Steve
    Keymaster

    We were able to reproduce and think we have it fixed:
    -Open /includes/class-piklist-cpt.php in a code editor.
    -replace the post_row_actions function with this code:

      public static function post_row_actions($actions, $post)
      {
        global $current_screen;
    
        if(isset($current_screen))
        {    
          if (isset(self::$post_types[$current_screen->post_type]) && isset(self::$post_types[$current_screen->post_type]['hide_post_row_actions']))
          {
            foreach (self::$post_types[$current_screen->post_type]['hide_post_row_actions'] as $action)
            {
              unset($actions[$action == 'quick-edit' ? 'inline hide-if-no-js' : $action]);
            }
          }    
        }
    
        return $actions;
      }

    Let us know if that fixed the issue for you.

    in reply to: Displaying post meta from advanced add_more grouped fields #1597
    Steve
    Keymaster

    Have you read the docs on the Add-more field and how to build a template part.

    in reply to: Basic front end help #1594
    Steve
    Keymaster

    Your field is subtitle but you’re pulling demo_subtitle. They need to match.

    in reply to: Picklist not working on my theme… #1586
    Steve
    Keymaster

    @dawanet– Sorry to hear you’re having issues. What exactly do you mean you cannot “add posts”. Please feel free to post a screenshot.

    in reply to: Links for uploaded files or photo #1582
    Steve
    Keymaster

    @mooolen– The Piklist upload field is supposed to mimic the standard field in WordPress. Is it doing something different?

Viewing 15 posts - 2,506 through 2,520 (of 2,964 total)