How to Optimize WordPress Robots.txt File for SEO

You are lucky that WordPress automatically creates a Robots.txt file for you. Having this file is half of the battle. You have to make sure that Robots.txt file is optimized to get the full benefits. What is Robots.txt File? Robots.txt file is a text file which instructs search engine bots how to crawl and index … Read more

How to Secure Your WordPress Website

I’ve heard many website owners complain about the security of WordPress.  And if so, how do you secure your WordPress website? In this guide, we will share all the top WordPress security tips to help you protect your website against hackers and malware.As a website owner, there’s a lot that you can do to improve … Read more

How to Fix “Brifefly unavilable for Scheduled maintenance. check Back in a minute” Error

“Briefly unavailable for scheduled maintenance. Check back in a minute” is an error in WordPress, which usually occurs when an update is not successfully completed. This is the common problem in theme update and plugins updates.the update process may timeout, leaving your site in maintenance mode and inaccessible. In this article, I will familiarize you with … Read more

Use ajax without a plugin in wordpress

Plugin code is just… code, it can go in a themes functions.php, or a plugin file, there’s no magical or special difference other than the order they’re loaded . The problem you’re facing is that you’ve tried to put your logic inside the search page. Instead, the code needs to be in functions.php which is always loaded. How … Read more

How to display custom posts month by month?

wp-query be used to show posts month by month, and have it only show the past year <?php $blogtime = date(‘Y’); $prev_limit_year = $blogtime – 1; $prev_month = ”; $prev_year = ”; $args = array( ‘post_type’ => ‘asian’, ‘posts_per_page’ => 20, ‘ignore_sticky_posts’ => 1 ); $postsbymonth = new WP_Query($args); while($postsbymonth->have_posts()) { $postsbymonth->the_post(); if(get_the_time(‘F’) != $prev_month … Read more

What is the difference between “post” and “page” in WordPress?

many people are confused in page and post difference. wordpress  comes  with two content type post and page begineer developer are confused, Pages These are your static pages.  Examples of your pages would be: About, Services, Contact, etc. While the WordPress database stores the published date of the page, pages are timeless entities. For example, your about … Read more

WordPress Custom Taxonomy With Same Slug As Custom Post Type

If you want the Terms in your Custom Taxonomy to have their URL path containing their Custom Post Type slug instead of Custom Taxonomy slug without showing 404 page, that can be a little tricky, and as I found throughout the blogs and forums quite impossible. create register post type // register custom post type function create_post_types() { register_post_type(‘latestcases’, array( ‘labels’ => array( ‘name’ … Read more

How to Create Custom Post Types in WordPress

Custom post types are one of the more useful features in WordPress. In this article, we will show you how to create custom post types in WordPress. Creating custom post type the Easy way you can create manually  custom post type by adding the required code in your theme’s functions.php file // Our custom post type function function create_posttype() { … Read more

How to use Ajax in wordpress

Ajax is fast and Smooth Way of Display content Result in Ajax is now used in many various ways on a website, such as submitting blog comments, liking posts and uploading files. Given the popularity of Ajax, most of the leading CMS platforms use it within their architecture. WordPress is no different. Actually WordPress employs … Read more

Submit a Custom Post Type in WordPress from the Front End

To allow users to submit content, you need to provide a form. The form fields will be used to input details, such as title, post content, tags, categories, featured image, etc. For example, you could create the form as follows: <form method=”post”><p><label for=”stackTitle”><?php _e(‘Enter the Post Title:’, ‘mytextdomain’) ?></label> <input type=”text” name=”stackTitle” id=”stackTitle” /></p> <p> … Read more