commanderk84
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Na Walker no mobile menuThank you BCWorkz!
This seems to solve the problem.
Forum: Developing with WordPress
In reply to: EndifThe debuggings hint helped me. It was another endif on a other page.
Forum: Developing with WordPress
In reply to: EndifThe debugging helped a lot!
Thank you for your help and quick response!Forum: Developing with WordPress
In reply to: EndifI 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.
Forum: Developing with WordPress
In reply to: EndifThat works now…
But then I get critical errors on another page where I make the initial query.Forum: Developing with WordPress
In reply to: EndifThat 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
In reply to: Style a permalink pageI 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
In reply to: Style a permalink pageI’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
In reply to: Multple page thumbnailsI did a work-around now. This topic can be closed
Forum: Developing with WordPress
In reply to: Multple page thumbnailsIf I put that in img-brackets as a source it doesn’t work