Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter typecconsulting

    (@typecconsulting)

    Hey @rizaardiyanto,

    Our DevOps might have found a bug/issue with the plugin based on something to do with HTTPS settings at a server level.

    Is there an email/person at your company I can forward the emails she’s sent to me? Better to connect them as some of it goes over my head, I’m afraid.

    Thanks!

    Thread Starter typecconsulting

    (@typecconsulting)

    Yep we do. I’ll drop our DevOps contact a line to see if she has any idea as the plugin itself seems to be working, just not in that one scenario in the Gutenberg edit screen.

    Thanks.

    Thread Starter typecconsulting

    (@typecconsulting)

    Hi Riza,

    So I tried to create the revision again and I got this error in the console when attempting to create a new revision in the Gutenberg Editor:

    /wp-admin/post.php?post=10956&action=edit&nc=c213c3cc net::ERR_TOO_MANY_REDIRECTS

    Thread Starter typecconsulting

    (@typecconsulting)

    I swore that I had done this already, but apparently not. Apologies.

    Looks like there may have been a conflict with another plugin, but after removing some ones that are no longer used and deactivating and reactivating one-by-one, it seems the problem is no longer happening!

    Thanks for your patience with this.

    Thread Starter typecconsulting

    (@typecconsulting)

    As a note, I’ve updated TEC to 5.12.1 on our production site that’s still on 5.6 and it works perfectly still.

    Thread Starter typecconsulting

    (@typecconsulting)

    Sorry, I somehow never saw this reply.

    1. Block Editor
    2. Custom Theme, Built from Scratch
    3. Yes, template overrides for styling
    4. Will have to check with the client on this, as it’s a municipality and we don’t have access to the hosting

    As a note, I’ve updated it to the latest version of TEC 5.12.1, and when I try to save, I still get the JSON error, and then when I try to deactivate and go into the Block Editor, it again shows the critical error.

    Thread Starter typecconsulting

    (@typecconsulting)

    Haha yep – it’s a cure all sometimes. Probably should have tried it earlier but now I know!

    Thread Starter typecconsulting

    (@typecconsulting)

    Hey @highprrrr,

    So weirdly, it didn’t work at first and I was still getting the JSON error and it would create an Auto Draft, but then in Quick Edit I could then publish the Auto Draft, so I thought maybe it had to do with the permalinks as your colleague previously mentioned.

    However in looking, I wasn’t using plain permalinks so I didn’t think it was that, but I saved the permalinks nonetheless and lo and behold, the events starting saving from the editor screen again.

    So…it’s working! Yay! Thanks.

    Thread Starter typecconsulting

    (@typecconsulting)

    Hey @geoffbel,

    Thanks for the quick response. Unfortunately I’ve uploaded the extension but it hasn’t fixed the saving issue. I’ll wait until the official release and hopefully that will fix things right up.

    Thanks for the heads up on 5.7. I’ve already installed that plugin on this particular site from looking at that doc, but will be cognizant of adding it to new developments moving forward.

    Thread Starter typecconsulting

    (@typecconsulting)

    Hi @sjaure,

    Does this require having billing information on file? It seems like it does when I try to activate the Geocoding API. If so, I’ll have to go through my client to do so.

    Please advise. Thanks.

    Thread Starter typecconsulting

    (@typecconsulting)

    Thanks Evan! I’m hijacking my own thread as well and asking another question of you. I would like to purchase the Historical Dates Add-On, but:

    1. Do we have to purchase the Pro version first?
    2. When I try to get to your evan-herman.com site, I’m asked for authentication – is that normal? Haha.

    Thanks!

    Thread Starter typecconsulting

    (@typecconsulting)

    Thanks. I’m still trying to find a workaround, but if I can’t, I’ll have to use that.

    Thread Starter typecconsulting

    (@typecconsulting)

    Yes – I think that may be my only choice in the long run. I’ve searched high and low for a workaround but it doesn’t seem to exist…

    Thanks though.

    Thread Starter typecconsulting

    (@typecconsulting)

    Yes. I’ve tried that. The issue is that the permalink structure for the custom post type “projects” is interfering with the creation of child pages. For child pages of the URL /projects/ I get a 404 error because it’s not allowing the creation of child pages with the same permalink structure as the custom post type…

    Thread Starter typecconsulting

    (@typecconsulting)

    Updated code without all the superfluous <div class=”row”>’s

    <?php
    /*
    Template Name: Restaurants
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="content-background">
       <div class="container">
    	<div id="page-title">
    	    <h1>Restaurants</h1>
    	    <div class="arrow"></div>
    	</div>
       	<section id="content" role="main">
    	   <div class="row">
    		<div class="col-sm-3 col-md-3 left-sidebar">
    		   <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Restaurants Sidebar') ) : ?>
    		   <?php endif; ?>
    		</div>
    	   	<div class="col-sm-9 col-md-9 content-right">
    		<div id="restaurant-listings">
    		    <h2><?php the_title(); ?></h2>
    			<div class="row">
    <?php $count = 0; ?>
    				<?php if (is_page(8)) {
    				   $my_query = new WP_Query('post_type=restaurant&posts_per_page=-1');
    				   while ($my_query->have_posts()) : $my_query->the_post(); ?>
    
    				<div class="col-xs-4 col-sm-4 col-md-4" <?php if( $count%3 == 0 ) { echo ' style="clear: both;"'; }; $count++; ?>>
    				    <?php if ( has_post_thumbnail()) : ?>
       					<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" />
       					<?php the_post_thumbnail('', array('class' => 'img-responsive')); ?>
      					 </a>
     				    <?php endif; ?>
    				     <h3><a href="<?php the_permalink();?>"><?php the_title() ?></a></h3>
    				     <?php the_content() ?>
    				</div>
    
    				<?php endwhile;  wp_reset_query(); } ?>
    
    				<?php if (is_page(10)) {
    					$args = array(
    					'post_type' => 'restaurant',
    					'posts_per_page' => '-1',
    				        'paged'=>$paged,
    				        'orderby'=>'title',
    				        'order'=>'ASC',
    					'tax_query' => array(
    				   array(
    					'taxonomy' => 'restaurant_category',
    					'field' => 'slug',
    					'terms' => 'vancouver'
    					   )
    					)
    				);
    				$restaurants = new WP_Query( $args );
    				if( $restaurants->have_posts() ) {
    				   while( $restaurants->have_posts() ) {
      				   $restaurants->the_post();
    				?>
    				<div class="col-xs-4 col-sm-4 col-md-4" <?php if( $count%3 == 0 ) { echo ' style="clear: both;"'; }; $count++; ?>>
    				    <?php if ( has_post_thumbnail()) : ?>
       					<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" />
       					<?php the_post_thumbnail('', array('class' => 'img-responsive')); ?>
      					 </a>
     				    <?php endif; ?>
    				     <h3><a href="<?php the_permalink();?>"><?php the_title() ?></a></h3>
    				     <?php the_content() ?>
    				</div>
    				   <?php
    				   	 }
    				   }
    				   else {
    					echo '<div class="col-xs-12 col-sm-12 col-md-12">Coming Soon!</div>';
    				   }
    				   } ?>
    
    				<?php if (is_page(19)) {
    					$args = array(
    					'post_type' => 'restaurant',
    					'posts_per_page' => '-1',
    				        'paged'=>$paged,
    				        'orderby'=>'title',
    				        'order'=>'ASC',
    					'tax_query' => array(
    				   array(
    					'taxonomy' => 'restaurant_category',
    					'field' => 'slug',
    					'terms' => 'toronto'
    					   )
    					)
    				);
    				$restaurants = new WP_Query( $args );
    				if( $restaurants->have_posts() ) {
    				   while( $restaurants->have_posts() ) {
      				   $restaurants->the_post();
    				?>
    				<div class="col-xs-4 col-sm-4 col-md-4" <?php if( $count%3 == 0 ) { echo ' style="clear: both;"'; }; $count++; ?>>
    				    <?php if ( has_post_thumbnail()) : ?>
       					<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" />
       					<?php the_post_thumbnail('', array('class' => 'img-responsive')); ?>
      					 </a>
     				    <?php endif; ?>
    				     <h3><a href="<?php the_permalink();?>"><?php the_title() ?></a></h3>
    				     <?php the_content() ?>
    				</div>
    				   <?php
    				   	 }
    				   }
    				   else {
    					echo '<div class="col-xs-12 col-sm-12 col-md-12">Coming Soon!</div>';
    				   }
    				   } ?>
    
    				<?php if (is_page(16)) {
    					$args = array(
    					'post_type' => 'restaurant',
    					'posts_per_page' => '-1',
    				        'paged'=>$paged,
    				        'orderby'=>'title',
    				        'order'=>'ASC',
    					'tax_query' => array(
    				   array(
    					'taxonomy' => 'restaurant_category',
    					'field' => 'slug',
    					'terms' => 'victoria'
    					   )
    					)
    				);
    				$restaurants = new WP_Query( $args );
    				if( $restaurants->have_posts() ) {
    				   while( $restaurants->have_posts() ) {
      				   $restaurants->the_post();
    				?>
    				<div class="col-xs-4 col-sm-4 col-md-4" <?php if( $count%3 == 0 ) { echo ' style="clear: both;"'; }; $count++; ?>>
    				    <?php if ( has_post_thumbnail()) : ?>
       					<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" />
       					<?php the_post_thumbnail('', array('class' => 'img-responsive')); ?>
      					 </a>
     				    <?php endif; ?>
    				     <h3><a href="<?php the_permalink();?>"><?php the_title() ?></a></h3>
    				     <?php the_content() ?>
    				</div>
    				   <?php
    				   	 }
    				   }
    				   else {
    					echo '<div class="col-xs-12 col-sm-12 col-md-12">Coming Soon!</div>';
    				   }
    				   } ?>
    
    				<?php if (is_page(14)) {
    					$args = array(
    					'post_type' => 'restaurant',
    					'posts_per_page' => '-1',
    				        'paged'=>$paged,
    				        'orderby'=>'title',
    				        'order'=>'ASC',
    					'tax_query' => array(
    				   array(
    					'taxonomy' => 'restaurant_category',
    					'field' => 'slug',
    					'terms' => 'kingston'
    					   )
    					)
    				);
    				$restaurants = new WP_Query( $args );
    				if( $restaurants->have_posts() ) {
    				   while( $restaurants->have_posts() ) {
      				   $restaurants->the_post();
    				?>
    				<div class="col-xs-4 col-sm-4 col-md-4" <?php if( $count%3 == 0 ) { echo ' style="clear: both;"'; }; $count++; ?>>
    				    <?php if ( has_post_thumbnail()) : ?>
       					<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" />
       					<?php the_post_thumbnail('', array('class' => 'img-responsive')); ?>
      					 </a>
     				    <?php endif; ?>
    				     <h3><a href="<?php the_permalink();?>"><?php the_title() ?></a></h3>
    				     <?php the_content() ?>
    				</div>
    				   <?php
    				   	 }
    				   }
    				   else {
    					echo '<div class="col-xs-12 col-sm-12 col-md-12">Coming Soon!</div>';
    				   }
    				   } ?>
    
    				<?php if (is_page(165)) {
    					$args = array(
    					'post_type' => 'restaurant',
    					'posts_per_page' => '-1',
    				        'paged'=>$paged,
    				        'orderby'=>'title',
    				        'order'=>'ASC',
    					'tax_query' => array(
    				   array(
    					'taxonomy' => 'restaurant_category',
    					'field' => 'slug',
    					'terms' => 'sooke'
    					   )
    					)
    				);
    				$restaurants = new WP_Query( $args );
    				if( $restaurants->have_posts() ) {
    				   while( $restaurants->have_posts() ) {
      				   $restaurants->the_post();
    				?>
    				<div class="col-xs-4 col-sm-4 col-md-4" <?php if( $count%3 == 0 ) { echo ' style="clear: both;"'; }; $count++; ?>>
    				    <?php if ( has_post_thumbnail()) : ?>
       					<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" />
       					<?php the_post_thumbnail('', array('class' => 'img-responsive')); ?>
      					 </a>
     				    <?php endif; ?>
    				     <h3><a href="<?php the_permalink();?>"><?php the_title() ?></a></h3>
    				     <?php the_content() ?>
    				</div>
    				   <?php
    				   	 }
    				   }
    				   else {
    					echo '<div class="col-xs-12 col-sm-12 col-md-12">Coming Soon!</div>';
    				   }
    				   } ?>
    
    				<?php if (is_page(12)) {
    					$args = array(
    					'post_type' => 'restaurant',
    					'posts_per_page' => '-1',
    				        'paged'=>$paged,
    				        'orderby'=>'title',
    				        'order'=>'ASC',
    					'tax_query' => array(
    				   array(
    					'taxonomy' => 'restaurant_category',
    					'field' => 'slug',
    					'terms' => 'chilliwack'
    					   )
    					)
    				);
    				$restaurants = new WP_Query( $args );
    				if( $restaurants->have_posts() ) {
    				   while( $restaurants->have_posts() ) {
      				   $restaurants->the_post();
    				?>
    				<div class="col-xs-4 col-sm-4 col-md-4" <?php if( $count%3 == 0 ) { echo ' style="clear: both;"'; }; $count++; ?>>
    				    <?php if ( has_post_thumbnail()) : ?>
       					<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" />
       					<?php the_post_thumbnail('', array('class' => 'img-responsive')); ?>
      					 </a>
     				    <?php endif; ?>
    				     <h3><a href="<?php the_permalink();?>"><?php the_title() ?></a></h3>
    				     <?php the_content() ?>
    				</div>
    				   <?php
    				   	 }
    				   }
    				   else {
    					echo '<div class="col-xs-12 col-sm-12 col-md-12">Coming Soon!</div>';
    				   }
    				   } ?>
    			</div>
    		</div>
    	   	</div>
    	   </div>
       	</section>
       </div>
    </div>
    
    <?php get_footer(); ?>

    Now the question is how to simply this AND add a count that outputs a new <div class=”row”> after every third post. I found an slightly haphazard solution as you can see above, but I really would like to know how to actually output what I want, which is to close the original <div class=”row”> after every third post with </div> and open another <div class=”row”> again for the next three posts.

    I would hugely appreciate any help anyone could give! Thanks!

Viewing 15 replies - 1 through 15 (of 15 total)