Title: commanderk84's Replies | WordPress.org

---

# commanderk84

  [  ](https://wordpress.org/support/users/commanderk84/)

 *   [Profile](https://wordpress.org/support/users/commanderk84/)
 *   [Topics Started](https://wordpress.org/support/users/commanderk84/topics/)
 *   [Replies Created](https://wordpress.org/support/users/commanderk84/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/commanderk84/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/commanderk84/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/commanderk84/engagements/)
 *   [Favorites](https://wordpress.org/support/users/commanderk84/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Na Walker no mobile menu](https://wordpress.org/support/topic/na-walker-no-mobile-menu/)
 *  Thread Starter [commanderk84](https://wordpress.org/support/users/commanderk84/)
 * (@commanderk84)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/na-walker-no-mobile-menu/#post-17355964)
 * Thank you BCWorkz!
 * This seems to solve the problem.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Endif](https://wordpress.org/support/topic/endif-2/)
 *  Thread Starter [commanderk84](https://wordpress.org/support/users/commanderk84/)
 * (@commanderk84)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/endif-2/#post-12464928)
 * The debuggings hint helped me. It was another endif on a other page.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Endif](https://wordpress.org/support/topic/endif-2/)
 *  Thread Starter [commanderk84](https://wordpress.org/support/users/commanderk84/)
 * (@commanderk84)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/endif-2/#post-12457458)
 * The debugging helped a lot!
    Thank you for your help and quick response!
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Endif](https://wordpress.org/support/topic/endif-2/)
 *  Thread Starter [commanderk84](https://wordpress.org/support/users/commanderk84/)
 * (@commanderk84)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/endif-2/#post-12456784)
 * I just get ‘A critital error has occured on your website’ on the projectpage.
   
   On this page I query posts for the project-template, whit the templatecode I 
   posted before.
 * The code for this page:
 *     ```
       <?php
   
       /*
   
           Template Name: Projectenpagina
   
       */
   
       ?>
   
       <?php get_header(); ?>
   
       <div class="container-fluid fullwidth">
   
         <div class="content">
   
         <div class="row first">
           <div class="col-xl-12 contentarea">
       		<div class="row menu">
   
       			<div class="bvvlogo" onClick="location.href='http://www.123.nl/v2';" id="linkeddiv" alt="Terug naar beginpagina" title="Terug naar beginpagina"> <img src="http://www.123/v2/wp-content/themes/abcd/images/logo.png" class="img-fluid logo" alt="alt text"></div>
   
       			<input type="checkbox" id="nav-toggle" class="nav-toggle">
       			<label for="nav-toggle" class="nav-toggle-label">
       				<div class="hamburger">
       				<div class="bar"></div>
       				<div class="bar"></div>
       				<div class="bar"></div>
       				</div>
       			</label>
   
       			<nav>
       				<?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
       			</nav>
   
   
       		</div>
   
   
   
   
               <div class="row thecontent">
   
                       <?php 
   
                       $lastPortfolio = new WP_Query('type=post&cat=4&orderby=rand');
   
                       if ( $lastPortfolio->have_posts() ):
   
                           while( $lastPortfolio->have_posts() ): $lastPortfolio->the_post(); ?>
   
                               <?php get_template_part('content-project-projectpage', get_post_format()); ?>
   
                           <?php endwhile;
   
                       endif;
   
                       wp_reset_postdata();
   
                       wp_reset_query();
   
                       ?>
   
       	    </div>
   
   
       	  </div>
         </div>
   
   
   
   
         </div>
   
       	  </div>
   
       <?php get_footer(); ?>
       ```
   
 * Also tried to remove the endif and endwhile, but that didn’t work.
 * Strange this all off this code work on Wamp-server, but not on internet
    -  This reply was modified 6 years, 2 months ago by [commanderk84](https://wordpress.org/support/users/commanderk84/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Endif](https://wordpress.org/support/topic/endif-2/)
 *  Thread Starter [commanderk84](https://wordpress.org/support/users/commanderk84/)
 * (@commanderk84)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/endif-2/#post-12456752)
 * That works now…
    But then I get critical errors on another page where I make 
   the initial query.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Endif](https://wordpress.org/support/topic/endif-2/)
 *  Thread Starter [commanderk84](https://wordpress.org/support/users/commanderk84/)
 * (@commanderk84)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/endif-2/#post-12456703)
 * That is what I do right?
 * I open a if condition with ‘if’ and at the end I do and endif.
    Tried it some
   other ways, but it keeps creating errors.
 * Could you copy the code like it should be?
 * The site works fine now as long as I do not create posts in this category at 
   the moment.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Style a permalink page](https://wordpress.org/support/topic/style-a-permalink-page/)
 *  Thread Starter [commanderk84](https://wordpress.org/support/users/commanderk84/)
 * (@commanderk84)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/style-a-permalink-page/#post-12320865)
 * I solved it another way: by adding the wordpress-classes to the body tag. And
   then giving style to the class-items.
 * Thanks for your response for now!
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Style a permalink page](https://wordpress.org/support/topic/style-a-permalink-page/)
 *  Thread Starter [commanderk84](https://wordpress.org/support/users/commanderk84/)
 * (@commanderk84)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/style-a-permalink-page/#post-12315282)
 * I’m developing a new theme. I already was thinking it wasn’t really clear after
   in entered it.
 * I want to style te page that is opened when clicking a permalink. In my case 
   this is a post. I already got some pages/templates as a page.teplate-info.php(
   for example). Would it also be possible to style a certain category for posts?
 * Like I choose it belongs to the category ‘portfolio’, and than style the post/
   page that’s behind this category?
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Multple page thumbnails](https://wordpress.org/support/topic/multple-page-thumbnails/)
 *  Thread Starter [commanderk84](https://wordpress.org/support/users/commanderk84/)
 * (@commanderk84)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/multple-page-thumbnails/#post-9874585)
 * I did a work-around now. This topic can be closed
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Multple page thumbnails](https://wordpress.org/support/topic/multple-page-thumbnails/)
 *  Thread Starter [commanderk84](https://wordpress.org/support/users/commanderk84/)
 * (@commanderk84)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/multple-page-thumbnails/#post-9866153)
 * If I put that in img-brackets as a source it doesn’t work

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