Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • in reply to: Editor field wpautop option not working? #1403
    preston
    Member

    Ah yep, that’s exactly what I was looking for.

    Thanks!

    in reply to: Error on post save (post-relate related) #1145
    preston
    Member

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

    in reply to: Error on post save (post-relate related) #1140
    preston
    Member

    I’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
    in reply to: Error on post save (post-relate related) #1139
    preston
    Member

    I 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

    in reply to: add_more fields edit broken in 0.8 b5 #1138
    preston
    Member

    Just 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!

    in reply to: Error on post save (post-relate related) #1136
    preston
    Member

    Same error with 0.8.0b6, btw.

    in reply to: Error on post save (post-relate related) #1135
    preston
    Member

    'scope' => 'post' changes the related items to posts.

    What I want to do here is related two custom post types, location and home.

    in reply to: Error on post save (post-relate related) #1104
    preston
    Member

    [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'
      ));
    in reply to: Toggle value with one checkbox? #1101
    preston
    Member

    Yes, I’m using the latest Development Version which is a beta.

    Looking forward to the next release!

    in reply to: Toggle value with one checkbox? #1099
    preston
    Member

    Is 1.0.6 available?

    I only see 0.8.0b5 on the download page: http://wordpress.org/plugins/piklist/developers/

    in reply to: Toggle value with one checkbox? #1097
    preston
    Member

    @cosmocanuck Hm. I was able to reproduce the bug with your code as well.

    I’m using Piklist version 0.8.0b5.

    in reply to: Toggle value with one checkbox? #1090
    preston
    Member

    Awesome, thanks Kevin!

    in reply to: Toggle value with one checkbox? #1087
    preston
    Member

    I also had problems setting up a single checkbox field, it would not remain unchecked after save. I ended up using a select box instead.

    in reply to: add_more fields edit broken in 0.8 b5 #1086
    preston
    Member

    I also ran into this bug. Looking forward to a fix. Thanks!

    in reply to: Two way connections with post-relate? #1077
    preston
    Member

    Can 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?

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