Jordi
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Plugin for instert Code on posts for tutorials?Thanks a lot!! ??
Forum: Fixing WordPress
In reply to: Make a WordPress more social? Likes and FollowsThanks!
Muchas gracias!
Forum: Fixing WordPress
In reply to: Chart with custom parameters on PHP with do_shortcodeHi! Finally I do this with Chart.js, more simple!!!
I put the “chart.min.js” using functions.php:
function codigoCharts() { wp_enqueue_script( 'chart-js', 'https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.6.0/Chart.min.js', array(), true ); } add_action( 'wp_enqueue_scripts', 'codigoCharts');
I get the data. One for month:
`$Enero = get_post_meta($post->ID, ‘biteqEnero’, true);
$Febrero = get_post_meta($post->ID, ‘biteqFebrero’, true);
$Marzo = get_post_meta($post->ID, ‘biteqMarzo’, true);
$Abril = get_post_meta($post->ID, ‘biteqAbril’, true);
$Mayo = get_post_meta($post->ID, ‘biteqMayo’, true);
$Junio = get_post_meta($post->ID, ‘biteqJunio’, true);
$Julio = get_post_meta($post->ID, ‘biteqJulio’, true);
$Agosto = get_post_meta($post->ID, ‘biteqAgosto’, true);
$Septiembre = get_post_meta($post->ID, ‘biteqSept’, true);
$Octubre = get_post_meta($post->ID, ‘biteqOct’, true);
$Noviembre = get_post_meta($post->ID, ‘biteqNov’, true);
$Diciembre = get_post_meta($post->ID, ‘biteqDic’, true);`And I put the data on the “chart.js” javascript code, painting the chart!:
<canvas id="biteqGrafica" width="400" height="400"></canvas> <script> var ctx = document.getElementById('biteqGrafica').getContext('2d'); var myChart = new Chart(ctx, { type: 'bar', data: { labels: ['ENERO', 'FEBRERO', 'MARZO', 'ABRIL', 'MAYO', 'JUNIO', 'JULIO','AGOSTO','SEPTIEMBRE','OCTUBRE','NOVIEMBRE','DICIEMBRE'], datasets: [{ label: 'INVERSIóN', data: [<?php echo $Enero ?>, <?php echo $Febrero ?>, <?php echo $Marzo ?>, <?php echo $Abril ?>, <?php echo $Mayo ?>, <?php echo $Junio ?>,<?php echo $Julio ?>,<?php echo $Agosto ?>,<?php echo $Septiembre ?>,<?php echo $Octubre ?>,<?php echo $Noviembre ?>,<?php echo $Diciembre ?>], backgroundColor: [ 'rgba(191, 170, 111, 0.2)', 'rgba(191, 170, 111, 0.2)', 'rgba(191, 170, 111, 0.2)', 'rgba(191, 170, 111, 0.2)', 'rgba(191, 170, 111, 0.2)', 'rgba(191, 170, 111, 0.2)', 'rgba(191, 170, 111, 0.2)', 'rgba(191, 170, 111, 0.2)', 'rgba(191, 170, 111, 0.2)', 'rgba(191, 170, 111, 0.2)', 'rgba(191, 170, 111, 0.2)', 'rgba(191, 170, 111, 0.2)' ], borderColor: [ 'rgba(216, 191, 125, 1)' ], borderWidth: 0 }] }, options: { scales: { yAxes: [{ ticks: { beginAtZero: true } }] } } }); </script>
Forum: Fixing WordPress
In reply to: Incorrect charset after WordPress.com migrationOuch…
latin1_swedish_ciWTF?
How I can change this?
Thanks a lot!!!
Forum: Fixing WordPress
In reply to: Create a archive with past websites?We will proceed with subdomains. Yes, probably is the best solution!
Thanks a lot!
Forum: Plugins
In reply to: [Contact Form 7] Default value on shortcode?I try with something like this:
[cf7form cf7key=”landing_copy” menu-provincia=”ALICANTE “]
“menu-provincia” is a select* type:
[select* menu-provincia default:get “áLAVA” “ALBACETE” “ALICANTE” “ALMERíA” “ASTURIAS” “BARCELONA” “BURGOS” “CáCERES” “CáDIZ” “CANARIAS” “CASTELLóN” “CIUDAD REAL” “CóRDOBA” “GIRONA” “GRANADA” “GUIPúZCOA” “HUELVA” “JAEN” “LAS PALMAS” “LEóN” “LéRIDA” “LUGO” “MADRID” “MáLAGA” “MALLORCA” “MELILLA” “MURCIA” “NAVARRA” “OURENSE” “PALENCIA” “PONTEVEDRA” “SEVILLA” “SORIA” “TARRAGONA” “TOLEDO” “VALENCIA” “VALLADOLID” “VIZCAYA” “ZAMORA” “ZARAGOZA”]
- This reply was modified 4 years, 9 months ago by Jordi.
For what reason this happens now?
Thank you so much!
Forum: Fixing WordPress
In reply to: Extract a field from an array on MySQL DB on WordPressOh yes!!!
Thank you very very much!!!
Now i have all the videos enabled on the site!
Have a nice friday and a great weekend!Forum: Fixing WordPress
In reply to: Extract a field from an array on MySQL DB on WordPressmmm…it’s very strange.
In some videos, there are 2 fields:Array
(
[td_video] => https://youtu.be/jaJ89fnaktM
[td_last_video] => https://youtu.be/jaJ89fnaktM
)I think is a bad implementation of the theme xD
Forum: Fixing WordPress
In reply to: Extract a field from an array on MySQL DB on WordPressI get this:
Array
(
[td_video] => https://vimeo.com/145711577
)Forum: Fixing WordPress
In reply to: Extract a field from an array on MySQL DB on WordPressOn the admin side I get this error :
” Warning: htmlspecialchars() expects parameter 1 to be string, array given in /usr/home/diania.tv/web/wp-content/themes/mts_newspaper/functions.php on line 2525 Vídeo ”Forum: Fixing WordPress
In reply to: Extract a field from an array on MySQL DB on WordPressForum: Fixing WordPress
In reply to: Extract a field from an array on MySQL DB on WordPress@valentinbora Thanks! I try.
Forum: Fixing WordPress
In reply to: Extract a field from an array on MySQL DB on WordPress@sterndata I see that if I put again this post with “not resolved”, it does not appear on the forum again.