WordPress fonts need to upload with Google fonts?

You should never touch any files in wp-includes or wp-admin. Why? Because the next time you update WordPress, any changes you made will get erased. Option 1 – Easy If you want to use Google fonts with your WordPress theme, try a plugin like Easy Google Fonts or WP Google Fonts. Option 2 – More … Read more

Dummy data error

The screenshot states the problem clearly: Maximum execution time of 60 seconds exceeded Pages have a time limit inside which they need to do their work, otherwise a badly written PHP script could run forever. This is why importing huge data sets runs into this problem. The bigger the import, the longer it takes, but … Read more

Reporting errors in a shortcode plugin

Take a look at admin notices. If you the cols parameter isn’t set use some code like this: function sample_admin_notice_fail() { ?> <div class=”notice notice-error is-dismissible”> <p><?php _e( ‘You forgot the cols parameter!’, ‘sample-text-domain’ ); ?></p> </div> <?php } add_action( ‘admin_notices’,’sample_admin_notice_fail’ ); to display this notice: on top of your admin page. You find some … Read more

What’s wrong with this piece of code? [closed]

This loop: while($listing->have_posts()): get_template_part( ‘partials/listing-cars/listing-list’, ‘loop’ ); endwhile; will never terminate, because $listing->have_posts() will never be false. You need $listing->the_post() to advance the loop to the next post in each iteration. Then, when the last post is reached, $listing->have_posts() will be false and the loop will end. while($listing->have_posts()): $listing->the_post(); get_template_part( ‘partials/listing-cars/listing-list’, ‘loop’ ); endwhile;