• Resolved balux

    (@balux)


    Hi, I’m trying your plugin. I have a calendar which is public, in my gmail account. What I need is basically to include it in a page. I know I can just copy/paste the iframe code, but this won’t be responsive and I wanted to try out this plugin to see how it works.
    Basically, I created a new calendar, I copy/pasted the ID of my public calendar, got an API key and insterted it in the requested field in the plugin. However, if I write [calendar id=”100″] in my articles, the calendar won’t show up. Instead, the plain [calendar id=”100″] is displayed. Am I missing anything?

    thanks!

    https://www.ads-software.com/plugins/google-calendar-events/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Nick Young

    (@nickyoung87)

    This sounds like it could be a theme issue. The theme would need to make use of the do_shortocde() function in the content area.

    Just to make sure you can run through this: https://docs.simplecalendar.io/troubleshooting-theme-plugin-widget-conflicts/

    If it doesn’t work on a default theme with other plugins disabled then let me know and we can go from there.

    Thread Starter balux

    (@balux)

    Hi,
    thank you. I’m now testing my theme with the theme check plugin (although I don’t receive any error). However I’m displaying the article inside a modal (I’m trying to use bootstrap with wp). Do you think this might be an issue?

    Here’s my code to dispaly the articles

    <section id="saleprove" class="bg-gray">
    		<div class="container">
    			<div class="row">
    				<div class="col-lg-12 text-center">
    					<h3 class="service-heading">Sale prove</h3>
    				</div>
    <?php
    	$args_sp = array( 'numberposts' => '5', 'category_name' => 'saleprove' );
    	$sp = wp_get_recent_posts( $args_sp );
    	foreach( $sp as $sala ):
    		$sala_id = $sala["ID"];
    		$sala_img_src = get_the_post_thumbnail($sala_id, 'archive_grid');
    		$sala_title = $sala["post_title"];
    		$sala_content = get_post_field('post_content', $sala_id);
    		$col_width = "col-lg-";
    
    		switch (count($sp)) {
    			case 1:
    				$col_width.= 12;
    				break;
    			case 3:
    				$col_width.= 4;
    				break;
    			case 4:
    				$col_width.= 3;
    				break;
    			default:
    				$col_width.= 6;
    				break;
    		}
    ?>
    		<div class="<?php echo $col_width." text-center"; ?>"><!-- open -->
    			<a data-toggle="modal"  href="" data-target="#modal-sp-<?php echo $sala_id; ?>">
    				<div class="round-img">
    					<img class="img-responsive img-circle" alt="" src="<?php echo $sala_img_src; ?>">
    				</div>
    			</a>
    			<h4><?php echo $sala_title ?></h4>
    		</div>
    
    		<div id="modal-sp-<?php echo $sala_id; ?>" class="modal fade in" aria-hidden="false" role="dialog" tabindex="-1">
    			<div class="modal-content">
    				<div class="close-modal" data-dismiss="modal">
    					<div class="lr">
    						<div class="rl"> <a href="#">Close</a></div>
    					</div>
    				</div>
    				<div class="container">
    					<div class="row">
    						<div class="col-lg-10 col-lg-offset-1">
    							<div class="modal-body">
    								<h2><?php echo $sala_title ?></h2>
    								<hr class="star-primary"> <!--linea separazione orizzontale -->
    								<img class="img-responsive img-centered img-modal" alt="IMG"
    								src="<?php echo $sala_img_src; ?>">
    								<div class=" text-center">
    									<p><?php echo $sala_content; ?></p>
    									<h4> title </h4>
    								</div>
    								<center> <!-- close -->
    									<a data-dismiss="modal" class="btn btn-success btn-xl ">Chiudi</a>
    								</center>
    							</div>
    						</div>
    					</div>
    				</div>
    			</div>
    		</div>
    <?php
    	endforeach;
    ?>
    
    			</div>
    		</div>
    	</section>
    Plugin Contributor Nick Young

    (@nickyoung87)

    You might have to change this line:

    <p><?php echo $sala_content; ?></p>

    To this:

    <p><?php echo do_shortcode( $sala_content ); ?></p>

    Thread Starter balux

    (@balux)

    that worked! thanks!

    Plugin Contributor Nick Young

    (@nickyoung87)

    Awesome! Happy to help.

    If you have a second could you quickly rate our plugin if you haven’t already? It keeps us highly motivated to continue improving the plugin and helps spread the word so more folks find it.

    Click here to rate us

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘issue including public calendar’ is closed to new replies.