ricjoh
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Sort Order] PHP ErrorNo problem. If you’re on a linux box, tail your error log while you’re developing.
Forum: Plugins
In reply to: [WP Sort Order] PHP ErrorThanks, but…
I don’t think you understood both parts. You are using get_current_screen(), but I still get the error, because you’re not ensuring it’s an object.
Trying to get property 'id' of non-object in /web/html/kmccontrols.com/wp-content/plugins/wp-sort-order/inc/hooks.php on line 57
It’s being called by a script where there is no screen set.
Make line 57 read:
if ( ! is_object( $screen ) or 'users' != $screen->id )
So if there’s not a screen defined, it won’t fail.
- This reply was modified 5 years, 3 months ago by ricjoh.
Forum: Plugins
In reply to: [Woocommerce Multiple Addresses] No longer functioning with Woocommerce 2.6.2I just looked at this. It’s pretty broken. The edit link is actually on a different page (that the plugin didn’t know about) and there’s no hook to modify that edit link anyway.
There’s lots of ways to fix this using copies of woocommerce templates in your theme directory. The easiest would be to copy /wp-content/plugins/woocommerce/templates/myaccount/my-address.php to /themes/THEMENAME/woocommerce/myaccount/my-address.php then edit it so that it reads (something like–I haven’t tried it):
Old line 51
<a href="<?php echo esc_url( wc_get_endpoint_url( 'edit-address', $name ) ); ?>" class="edit"><?php _e( 'Edit', 'woocommerce' ); ?></a>
to
New line 51 and more
<?php if ( $title == 'Shipping Address' ): ?> <a href="<?php echo esc_url( '/my-account/multiple-shipping-addresses/' ); ?>" class="edit"><?php _e( 'Edit', 'woocommerce' ); ?></a> <?php else: ?> <a href="<?php echo esc_url( wc_get_endpoint_url( 'edit-address', $name ) ); ?>" class="edit"><?php _e( 'Edit', 'woocommerce' ); ?></a> <?php endif ?>
Forum: Plugins
In reply to: [Woocommerce Multiple Addresses] No longer functioning with Woocommerce 2.6.2I have this running on WC 2.6.2. It looks okay to me. Can you tell me how it’s broken? On what page?
Forum: Plugins
In reply to: [WP Customer Reviews] Pro VersionSo, do you need beta testers? ?? This is a nice plugin, but I really want to do my own templates…
Forum: Plugins
In reply to: [Participants Database] wpdb::prepare error in WP 3.5Thanks for your help! ??
Forum: Plugins
In reply to: [Boilerplate] [Plugin: Boilerplate] Search/Replace failing (WP 3.4 )Yes, any capital letter in the placeholder breaks the replace function.
It would be useful if this worked with capital letters so your placeholders could stand out like __PLACEHOLDER__
Forum: Plugins
In reply to: [Boilerplate] [Plugin: Boilerplate] Search/Replace failing (WP 3.4 )Okay. “search” and “replace” seem like KEYWORDS. Bad semantics.
I’ll play with it and see if I can get it to go. I’ll let you know what I find.
Forum: Plugins
In reply to: [Widget Builder] [Plugin: Widget Builder] Custom template file not loadingI found a hack. Just create a file (or symlink) in that same directory called “widget” Then get_template_hierarchy will find that file and return the correct file. (.php)
Forum: Plugins
In reply to: [Boilerplate] [Plugin: Boilerplate] Search/Replace failing (WP 3.4 )My Real Question
Okay. That’s fine. But should my codes (above) be doing the right thing? Have you tested this in WP 3.4 and WP 3.4.1?Side Note on Documentation
The ONLY example on that page:[BoilerPlate plate = "title" search = "replace"]
In the admin list of plates when I use it in WP it says the shortcode looks like:
[boilerplate lorem-boilerplate]
That version (using the plate ID instead of plate=”Lorem Boilerplate” as an attribute) is not documented. I was just making a note for your reference.
The note in your docs on how to use “search” is not clear. I thought it’d be great for you to have a single example to follow.
For instance you could add this to the docs:
To replace “FOO” in boilerplate “test” with “bar” use:
[BoilerPlate plate = "test" FOO="bar"]