Forum Replies Created
-
AuthorPosts
-
prestonMemberAh yep, that’s exactly what I was looking for.
Thanks!
prestonMemberThanks Steve,
I was still getting the error after deactivating, deleting, and re-installing the plugin.
I’m now using Posts 2 Posts for post relationships, which seems to work fine with piklist created custom post types.
prestonMemberI’m able to reproduce this with Piklist Demos as well.
1. Piklist Demos > Add New Piklist Demo
2. Give the post a title and click Save.
Warning: substr_compare() [function.substr-compare]: The length cannot exceed initial string length in /home/koavac/public_html/wp-content/plugins/piklist/includes/class-piklist-form.php on line 1475 Warning: Cannot modify header information - headers already sent by (output started at /home/koavac/public_html/wp-content/plugins/piklist/includes/class-piklist-form.php:1475) in /home/koavac/public_html/wp-includes/pluggable.php on line 875
prestonMemberI confirmed the post types are registered and have published posts. I even re-created the posts to make sure they have clean meta data.
The odd thing is that this error only shows up on my production server, not my local dev server.
They are both running
PHP 5.2.17
WordPress 3.6.1
Piklist 0.8.0b6
prestonMemberJust a heads up, this example in the docs no longer works.
<?php $orders = get_post_meta($post->ID, 'order_add_more', false); echo '<ul>'; foreach ($orders as $order): echo '<li>' . $order['item'] . ', ' . $order['qty'] . ', ' . $order['due']</li>'; endforeach; echo '</ul>'; ?>I instead had to use this.
<?php $quotes = get_post_meta($post->ID, 'location-testimonial', false); ?> <?php $qcount = count($quotes[0]['quote']); ?> <?php $i=0; while($i < $qcount) { ?> <div class="quote"> <blockquote> <p><?php echo $quotes[0]['quote'][$i]; ?></p> <small><?php echo $quotes[0]['source'][$i]; ?></small> </blockquote> </div> <?php $i++; } ?>Seems a bit more code than it should be, no? Is there a better way to get these values?
Thanks!
prestonMemberSame error with 0.8.0b6, btw.
prestonMember'scope' => 'post'changes the related items to posts.What I want to do here is related two custom post types, location and home.
prestonMember[theme]/piklist/parts/meta-boxes/location-related.php
<?php /* Title: Available Homes Post Type: location Order: 10 Priority: default Context: side Collapse: false */ piklist('field', array( 'type' => 'post-relate' ,'scope' => 'home' ,'template' => 'field' )); piklist('shared/code-locater', array( 'location' => __FILE__ ,'type' => 'Meta Box' ));
prestonMemberYes, I’m using the latest Development Version which is a beta.
Looking forward to the next release!
prestonMemberIs 1.0.6 available?
I only see 0.8.0b5 on the download page: http://wordpress.org/plugins/piklist/developers/
prestonMember@cosmocanuck Hm. I was able to reproduce the bug with your code as well.
I’m using Piklist version 0.8.0b5.
prestonMemberAwesome, thanks Kevin!
prestonMemberI also had problems setting up a single checkbox field, it would not remain unchecked after save. I ended up using a select box instead.
prestonMemberI also ran into this bug. Looking forward to a fix. Thanks!
prestonMemberCan anyone clarify how post-relate works?
If two-way relationships are possible, I’d love to know how.
If not, is this a feature request that anyone else is looking for?
-
AuthorPosts