Forum Replies Created
-
AuthorPosts
-
SteveKeymasterI 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.
SteveKeymasterRevision 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_postandwp_postmetatables. 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.
SteveKeymaster-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.
SteveKeymasterWe 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.
SteveKeymasterYou found a bug. The Editor in a grouped add_more doesn’t work properly.
March 31, 2014 at 3:05 pm in reply to: After install I can´t see some types of pages and show me 404 page #1626
SteveKeymaster@epica– Not sure how this is related to Helpers, but try clicking on SETTINGS > PERMALINKS. That should flush your rewrite rules.
SteveKeymaster@alwaysonline– Are you running the latest version of WP Helpers and Piklist?
SteveKeymasterYup, it’s a bug. Not just for your code, but in Piklist Demos as well.
March 24, 2014 at 3:55 pm in reply to: Displaying post meta from advanced add_more grouped fields #1608
SteveKeymasterThis 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 fortier_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 wherethe_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.
SteveKeymasterWe were able to reproduce and think we have it fixed:
-Open /includes/class-piklist-cpt.php in a code editor.
-replace thepost_row_actionsfunction 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.
March 23, 2014 at 7:25 am in reply to: Displaying post meta from advanced add_more grouped fields #1597
SteveKeymasterHave you read the docs on the Add-more field and how to build a template part.
SteveKeymasterYour field is
subtitlebut you’re pullingdemo_subtitle. They need to match.
SteveKeymaster@dawanet– Sorry to hear you’re having issues. What exactly do you mean you cannot “add posts”. Please feel free to post a screenshot.
-
AuthorPosts