Inserir dado de célula Google Spreadsheet no PHP
Estou tentando inserir dados de células do Google Spreadsheet no meu php para preencher o texto do HTML, contidos no arquivo page.php do Wordpress. Mas não sei como fazer, alguém saberia me ajudar?
<?php // The default template for displaying pages ?>
<?php get_header(); ?>
<div class="bnt-container">
<div class="content content-page">
<main class="site-main">
<?php
// Start the Loop
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
// Include the page content
get_template_part( 'content', 'page' );
// If comments are open or the page has at least one comment, load the comments template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
// End the Loop
}
}
?>
<?php
function gpus_scripts(){
wp_enqueue_script( 'projagnt-script', get_template_directory_uri().'/includes/js/proj_agnt.js', array('jquery'), false, false );
wp_enqueue_script( 'projagnt-script', get_template_directory_uri().'/includes/isotope/isotope.pkgd.js', array('jquery'), false, false );
}
add_action( 'wp_enqueue_scripts','gpus_scripts');?>
<?php global $post; ?>
<?php if(is_page('Project')){ ?>
<div id="cellA1_text">...</div>
<div id="cellA2_text">...</div>
<div id="cellA3_text">...</div>
<div id="cellA4_text">...</div>
<?php } ?>
</main>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>Discussão (0)
Carregando comentários...