Jordi
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Extract a field from an array on MySQL DB on WordPressHi again. Now I’m on home.
@valentinbora
I used custom code.
I have this on Functions.php/* **** Vídeo i VIA per a Diània **** */ add_action('add_meta_boxes', 'videoDiania'); function videoDiania() { add_meta_box('video','Video','el_video','post','normal','high'); } function el_video() { global $wpdb, $post; $value = get_post_meta($post->ID, 'video', true); echo '<label>Vídeo</label> <input type="text" name="video" id="video" value="'.htmlspecialchars($value).'" style="width: 100px;" /> '; } add_action('save_post', 'guardar_video'); add_action('publish_post', 'guardar_video'); function guardar_video() { global $wpdb, $post; if (!$post_id) $post_id = $_POST['post_ID']; if (!$post_id) return $post; $price= $_POST['video']; update_post_meta($post_id, 'video', $price); }And this on single.php
<?php $video= get_post_meta(get_the_ID(), 'video', true); ?> <?php echo $embed_code = wp_oembed_get( $video ); ?>Forum: Fixing WordPress
In reply to: Extract a field from an array on MySQL DB on WordPressI was thinking that is imposible, but now I have hope.
Thank you very much! I will try soon.
Forum: Plugins
In reply to: [WooCommerce] Set all products with “There are stock” ?Thanks!
Forum: Plugins
In reply to: [Event Organiser] URL with venue or category and not event slug?For the SEO this will be perfect. Because I use “category” for the region and “venue” for the town-city, of course.
🙂Forum: Plugins
In reply to: [WooCommerce] Change Moroccan Dirham symbol with ‘Dhs’ text?It’s not possible?
Hi!!!
Now, works nice!
The hosting company migrate the website to a new server with PHP 7.2
Thanks!Thanks a lot for the answer!
The version is “php 5.4.45-0+deb7u9 “. I contact with the hosting company to upgrade to a newer version.
If I find the solution, I will tell you later!