php artisan make:auth Command "make:auth" is not defined.
composer require laravel/ui
php artisan ui vue --auth
php artisan migrate
php artisan make:auth Command "make:auth" is not defined.
composer require laravel/ui
php artisan ui vue --auth
php artisan migrate
Command "make:auth" is not defined
composer require laravel/ui
php artisan ui vue --auth
php artisan migrate
wordpress the loop
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php endwhile; else: ?>
<h2><?php esc_html_e( '404 Error', 'phpforwp' ); ?></h2>
<p><?php esc_html_e( 'Sorry, content not found.', 'phpforwp' ); ?></p>
<?php endif; ?>
if (have_posts()): while(have_post()):the_post();
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
//
// Post Content here
//
} // end while
} // end if
?>
wordpress loop through and display blog posts
<?php
// checks if there are any posts that match the query
if (have_posts()) :
// If there are posts matching the query then start the loop
while ( have_posts() ) : the_post();
// the code between the while loop will be repeated for each post
?>
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="date-author">Posted: <?php the_date(); ?> by <?php the_author(); ?></p>
<?php the_content(); ?>
<p class="postmetadata">Filed in: <?php the_category(); ?> | Tagged: <?php the_tags(); ?> | <a href="<?php comments_link(); ?>" title="Leave a comment">Comments</a></p>
<?php
// Stop the loop when all posts are displayed
endwhile;
// If no posts were found
else :
?>
<p>Sorry no posts matched your criteria.</p>
<?php
endif;
?>
wordpress loop first two post
<div class="col-lg-12">
<div class="row">
<?php if ( have_posts() ) : ?>
<?php if ( in_category( 'Featured' ) ) : /* Start the Featured Loop */ ?>
<?php while( have_posts() ) : the_post(); ?>
<?php if( $wp_query->current_post == 0 ) {
//open wide column wrapper div// ?>
<?php } ?>
<?php if( $wp_query->current_post <= 1 ) {
get_template_part( 'content', 'featured' );
//insert large post// ?>
<?php } ?>
<?php if( $wp_query->current_post == 1 || $wp_query->current_post <= 1 && $wp_query->current_post == $wp_query->post_count-1 ) {
//close wide column div// ?>
<?php } ?>
<?php if( $wp_query->current_post == 2 || $wp_query->current_post <= 1 && $wp_query->current_post == $wp_query->post_count-1 ) {
//open narrow column wrapper div// ?>
<?php } ?>
<?php if( $wp_query->current_post >= 2 ) {
get_template_part( 'content', 'featuredside' );
//insert small post//?>
<?php } ?>
<?php if( $wp_query->current_post == 4 || $wp_query->current_post == $wp_query->post_count-1 ) {
//close narrow column div// ?>
<?php } ?>
<?php endwhile; ?>
<?php endif; ?>
<?php endif; ?>
</div> <!--/.row-->
</div> <!--/.col-lg-12-->
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us