JL
Forum Replies Created
-
Yes – This is a serious issue. I’ve been very pleased to use Alloyphoto’s Lightroom plugin with NextGen Pro for a number of years and hope that the NextGen folks will be responsive here. Thanks to all involved for looking into it. Cheers! John
Forum: Plugins
In reply to: [WooCommerce] show variation price in dropdownDynamic data like price should never be statically included in descriptions. Here’s some useful code from the good folks at Designloud (who I don’t know at all, but found in the quest for an good solution to this problem). https://designloud.com/add-prices-next-to-woocommerce-variations/
//Add prices to variations
add_filter( ‘woocommerce_variation_option_name’, ‘display_price_in_variation_option_name’ );function display_price_in_variation_option_name( $term ) {
global $wpdb, $product;$result = $wpdb->get_col( “SELECT slug FROM {$wpdb->prefix}terms WHERE name = ‘$term'” );
$term_slug = ( !empty( $result ) ) ? $result[0] : $term;
$query = “SELECT postmeta.post_id AS product_id
FROM {$wpdb->prefix}postmeta AS postmeta
LEFT JOIN {$wpdb->prefix}posts AS products ON ( products.ID = postmeta.post_id )
WHERE postmeta.meta_key LIKE ‘attribute_%’
AND postmeta.meta_value = ‘$term_slug’
AND products.post_parent = $product->id”;$variation_id = $wpdb->get_col( $query );
$parent = wp_get_post_parent_id( $variation_id[0] );
if ( $parent > 0 ) {
$_product = new WC_Product_Variation( $variation_id[0] );$itemPrice = strip_tags (woocommerce_price( $_product->get_price() ));
//this is where you can actually customize how the price is displayed
return $term . ‘ (‘ . $itemPrice . ‘)’;
}
return $term;}
I’m dealing with a similar issue @frank. I feel that the absence of the prev/next user navigation option is an important standard to consider @photocrati. I be interested to hear if you’ve had any success. Thanks!
John
Forum: Plugins
In reply to: [WP Facebook Open Graph protocol] Conflict with NextGenThe Nextgen admin panel that is used in posts/pages to place galleries was not populating correctly. In fact it was just blank. This was a recent development though. My system had been running fine. So I’m assuming an update must have a bug. I figured this out by deactivating plugins one at a time. I couldn’t locate any log based errors.
Forum: Plugins
In reply to: [Recent Posts Widget Extended] woocommerce product categoriesThanks Rock… this was super helpful
Forum: Plugins
In reply to: [Enhanced Media Library] Set media category when uploading ?I agree, the ability to tag assets in the media uploaded during the process of creating a post is critical. Other wise the workflow is doubled.
Forum: Plugins
In reply to: custom permalinks in job manageri’m having a permalink problem as well. if “Postname” is selected from the WP permalink settings the individual jobs are not accessible. We must be using page name based permalinks here. Any help would be really appreciated. Thanks, John
Forum: Themes and Templates
In reply to: Changing background image for each pageHey Mac, thanks for sharing this. I’m not much of a coder but I’m doing my best to learn in order to get the visual details i want.
Please confirm this…
on the page.php
below <?php get_header(); ?>put:
<style type=”text/css”>
body {
background-image: url(<?php bloginfo(‘template_url’); ?><?php echo get_post_meta($post->ID, ‘background-image’, true); ?>;
background-color: <?php echo get_post_meta($post->ID, ‘background-color’, true); ?>;
}
</style>When I examine the source code it successfully returns:
<style type=”text/css”>
body {
background-image: url(https://localhost/fragmentos/wp-content/themes/fragmentos/images/ground01.png;
background-color: #aa4339;
}
</style>define the custom fields in the individual pages
example:
background-color -> #aa4339
background-image -> /images/ground01.pngCould you just confirm where the last piece of PHP is located?
Thanks!
John