vipete
Forum Replies Created
-
function cf7_get_custom_field($atts){ extract(shortcode_atts(array( 'key' => '', 'post_id' => -1, 'obfuscate' => 'off' ), $atts)); if($post_id < 0){ global $post; if(isset($post)) $post_id = $post->ID; } if($post_id < 0 || empty($key)) return ''; $val = get_post_meta($post_id, $key, true); if($obfuscate == 'on'){ $val = cf7dtx_obfuscate($val); } return $val; } add_shortcode('CF7_get_custom_field', 'cf7_get_custom_field');
Actually I think I should add get_the_title() to this function somewhere, anyone know where to put this?
So I recon that I should add a shortcode in the “contact-form-7-dynamic-text-extension.php”
function ownerestate_box($post) { global $post; wp_nonce_field(plugin_basename(__FILE__), 'owner_property_noncename'); $mypost = $post->ID; $originalpost = $post; $owner_list = ''; $picked_owner = (get_post_meta($mypost, 'property_owner', true)); $args = array( 'post_type' => 'estate_owner', 'post_status' => 'publish', 'posts_per_page' => -1 ); $owner_selection = new WP_Query($args); while ($owner_selection->have_posts()){ $owner_selection->the_post(); $the_id = get_the_ID(); $owner_list .= '<option value="' . $the_id . '" '; if ($the_id == $picked_owner) { $owner_list.=' selected="selected" '; } $owner_list.= '>' . get_the_title() . '</option>'; } add_shortcode('CF7_ownerestate_box', 'cf7_ownerestate_box');
Something like this ? Any tips?
So it is putting out $the_id but I would like it to put out get_the_title() .
Anyone an idea how I resolve this?
Forum: Fixing WordPress
In reply to: Adding blog loop on homepageRemember, I don’t want to make changes in the original blog.php, because the normal blog page needs to work as it is now. I would like to make the blog work on the homepage also, but just with a maximum of 3 posts showing, perhaps of a certain category.
Hi! I am having this same problem. Did you guys find a solution ?
Thanks!Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Site-wide discountsHi René!
Also I would love to see a possibility to implement this discount feature you build for certain categories. Maybe nice idea for the future too ??Forum: Plugins
In reply to: [WP Super Cache] WP Super Cache & Woocommerce cache issueTry this:
Go to your dashboard and click on Database Cache in the performance settings.
In the ignored query stems field, make a new line and add:
_wc_session_
Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Multiple DiscountsHi Rene,
When I log out and log in the amounts are correct now.
The Cart Widget also seems to be fine!
Thanks for the quick respons and I wish you all the success!Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Multiple DiscountsOk I will do today and let you know! Thanks you so much Rene!
Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Multiple DiscountsHi Rene!
I am using the plugin on a testingstage so all is good!
Will report when I find more bugs.
Thanks!Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Multiple DiscountsYou are welcome!
Another thing I noticed is, when I logged out and logged back in.
The price becomes the discounted price and over that price goes another discount.So were it should be:
Cart:
6 x -$8- $6.40
Subtotal: $38.40It becomes:
6 x -$6.40- $5.12
Subtotal: $30.72Hope it helps!
Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Multiple DiscountsHi Rene! Thanks for the quick reply! I am very interested in using this plugin. Hopefully you can find out what is happening! I will be testing and following this threath!
Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Multiple DiscountsAs fas as I know this is working, but for some reason in the cart widget is first adds the percentage and shows the normal price as the discounted price. The subtotal is showing up right tho..
So it is like, at the same time:
Widget:
6 × -$10- $8
Subtotal: $38.40Cart:
6 x -$8- $6.40
Subtotal: $38.40Hi Rob,
I changed the size of the font inside my css to a suitable size. So things wouldn’t overlap. With larger adresses which needs two lines it is still a little misalligned, but at the moment it is workable. At this page you can see how it gets with two lines:
https://santacatarinabrasil.com/evento/creamfields-brasil-2012/Do you know what to change to make the colums nicely aligned in any situation?