Title: chocks's Replies | WordPress.org

---

# chocks

  [  ](https://wordpress.org/support/users/chocks/)

 *   [Profile](https://wordpress.org/support/users/chocks/)
 *   [Topics Started](https://wordpress.org/support/users/chocks/topics/)
 *   [Replies Created](https://wordpress.org/support/users/chocks/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/chocks/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/chocks/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/chocks/engagements/)
 *   [Favorites](https://wordpress.org/support/users/chocks/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 35 total)

1 [2](https://wordpress.org/support/users/chocks/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/chocks/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/chocks/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Dynamic Pricing and Discount Rules for WooCommerce] Bulk Discount Question](https://wordpress.org/support/topic/bulk-discount-question/)
 *  [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bulk-discount-question/#post-11621579)
 * Hi Alex, thanks for the plugin!
    I guess I wasn’t using the rules properly 🙂
   It’s working like a charm.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Dynamic Pricing and Discount Rules for WooCommerce] Bulk Discount Question](https://wordpress.org/support/topic/bulk-discount-question/)
 *  [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bulk-discount-question/#post-11621460)
 * Hi there, I’ve setup a rule to provide a % discount on products on 2 different
   categories, but when I add products of different categories (including the ones
   that I’ve added the rule to) to the cart all of them gets the discount.
    Is this
   a known bug? Thanks j
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OptionTree] From 2.1.4 to 2.2.2 / Call to undefined function ot_get_option()](https://wordpress.org/support/topic/from-214-to-222-call-to-undefined-function-ot_get_option/)
 *  Thread Starter [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/from-214-to-222-call-to-undefined-function-ot_get_option/#post-4548072)
 * Changed to 10 and that did the trick. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AdRotate Banner Manager] After upgrading to 3.8.1](https://wordpress.org/support/topic/after-upgrading-to-381/)
 *  Thread Starter [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/after-upgrading-to-381/#post-3375839)
 * I went back to version 3.7.4.3 and everything is working fine, as it was before
   updating.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AdRotate Banner Manager] After upgrading to 3.8.1](https://wordpress.org/support/topic/after-upgrading-to-381/)
 *  Thread Starter [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/after-upgrading-to-381/#post-3375798)
 * I got it after network activate (wp ms). To see if I could get it running again
   I enabled on a per site basis and still got me that error. May be because it’s
   Xampp running it?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Polls] WP-Poll issues](https://wordpress.org/support/topic/c-3/)
 *  [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/c-3/#post-3259299)
 * Lester, could you try this patch?
    [http://www.uv.mx/personal/gvera/wp-polls-wordpress-multisite/](http://www.uv.mx/personal/gvera/wp-polls-wordpress-multisite/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Polls] WP-Poll issues](https://wordpress.org/support/topic/c-3/)
 *  [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/c-3/#post-3259297)
 * I think I’ve found a workaround: do not network activate the plugin, just install
   it; go on each site and activate it. That should do the trick.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AdRotate Banner Manager] Export Adrotate settings, blocks, etc](https://wordpress.org/support/topic/export-adrotate-settings-blocks-etc/)
 *  Thread Starter [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/export-adrotate-settings-blocks-etc/#post-3250534)
 * I’m running it on my MS install and believe me: it works “just fine”. Every subdomain
   has it’s own working instance of Adrotate and they work independently from each
   other. Have a look yourself if you’d like: [http://pilar.vozoi.com](http://pilar.vozoi.com),
   [http://saavedra.vozoi.com](http://saavedra.vozoi.com), [http://lacarlota.vozoi.com](http://lacarlota.vozoi.com)
 * So I’m guessing you don’t want to explore the export/import possibility, right?
   I’ll see if one of my devs can have a look at it.
 * Thanks anyway!
 * J
 *   Forum: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
   
   In reply to: [New media upload window could be improved](https://wordpress.org/support/topic/new-media-upload-window-could-be-improved/)
 *  [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/new-media-upload-window-could-be-improved/page/2/#post-3270036)
 * As technabob said, these two things would sort out the UX when dealing with the
   media:
 * > 1) Default to Upload Files instead of Media Library
   >  2) Default to only files
   > uploaded to the current post after uploading images.
 * Everything else it’s great IMO.
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Wildcard Alternative](https://wordpress.org/support/topic/wildcard-alternative/)
 *  [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wildcard-alternative/#post-3313702)
 * Yeah, like Mika said, you just need to create each subdomain to mirror the domain.
   That’s it 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AdRotate Banner Manager] Export Adrotate settings, blocks, etc](https://wordpress.org/support/topic/export-adrotate-settings-blocks-etc/)
 *  Thread Starter [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/export-adrotate-settings-blocks-etc/#post-3250530)
 * Actually it’s working just fine on a MS environment: each site with it’s own 
   running AdRotate instance.
 * The only thing I’d like to see is an export/import tool for the ads/blocks/groups
   which will not only benefit my particular scenario but multiple regular cases
   where you’d like to take the data with you to another install, etc.
 * Thanks for the reply!
 *   Forum: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
   
   In reply to: [New media upload window could be improved](https://wordpress.org/support/topic/new-media-upload-window-could-be-improved/)
 *  [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/new-media-upload-window-could-be-improved/#post-3270004)
 * The question (not by me) on Stack Exchange [about how to change the default-view of media library](http://wordpress.stackexchange.com/questions/76125/change-the-default-view-of-media-library-in-3-5)
 *   Forum: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
   
   In reply to: [New media upload window could be improved](https://wordpress.org/support/topic/new-media-upload-window-could-be-improved/)
 *  [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/new-media-upload-window-could-be-improved/#post-3270002)
 * Yes! this is what I’d LOVE TO CHANGE: the default for the library is now “all
   media items” when it really should be **“uploaded to this post”** I’m trying 
   to find a hook or something cause it’s not straight forward for the user.
    Everything
   else: THAKS WP team 🙂 There are certain areas for improvement but right now 
   I’d like to ‘fix’ the default library.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] [Plugin: Events Manager] Conditional use of #_EVENTURL](https://wordpress.org/support/topic/plugin-events-manager-conditional-use-of-_eventurl/)
 *  [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-events-manager-conditional-use-of-_eventurl/#post-2728639)
 * Hey, thanks for posting your solution. Is there a chance to make that conditiona
   placeholder a php template tag?
 * ie.
 *     ```
       <?php if($event->has_att_premium) :?>
       stuff
       <?php endif,?>
       ```
   
 * thanks again,
 * Joaquin
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts 2 Posts] [Plugin: Posts 2 Posts] Looping the loop.. reversed?](https://wordpress.org/support/topic/plugin-posts-2-posts-looping-the-loop-reversed/)
 *  Thread Starter [chocks](https://wordpress.org/support/users/chocks/)
 * (@chocks)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-looping-the-loop-reversed/#post-2909772)
 * Thanks for this scribu!
    I ended up doing this:
 *     ```
       <?php
       	$offices_shown=array();
              	$connected_offices = p2p_type( 'jobs_to_offices' )->get_connected();
       	$show_offices = new WP_Query( array(
       		  'post_type' => 'offices',
       		  'nopaging' => true,
       		  'connected_type' => 'jobs_to_offices',
       		  'connected_items' => 'any',
       		  'connected_direction' => 'from'
       	) );
       	$i=1; while ($show_offices->have_posts()) : $show_offices->the_post();
       	$office_id = $post->ID;
       	if (!isset($offices_shown[$office_id])) :
       	$offices_shown[$office_id]=1;
       ?>
       	<li class="drop-list"><span><?php the_title();?></span>
                     <ul class="accord-list">
                    	<?php
       		$connected = p2p_type( 'jobs_to_offices' )->get_connected( $post );
       		while ( $connected->have_posts() ) : $connected->the_post();
       		?>
       			<li><a href="<?php the_permalink();?>"><?php the_title();?></a></li>
       		<?php
       		// Prevent weirdness
       		endwhile;
       		wp_reset_postdata();
       		?>
       	     </ul>
       	</li>
       	<?php endif; endwhile;	?>
       ```
   
 * I had to change the direction you set to “from” as the other way around it would
   give me a list of jobs with the connected offices and I wanted to list the offices
   with the connected jobs. Then I had to set an array to hide the offices displayed
   as it would repeat for some reason an office with jobs. In the end I got what
   I was looking for although the ‘array hack’ isn’t my favorite approach!
    Thanks
   a lot,
 * J

Viewing 15 replies - 1 through 15 (of 35 total)

1 [2](https://wordpress.org/support/users/chocks/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/chocks/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/chocks/replies/page/2/?output_format=md)