Task 64 : WordPress Theme Development – WP Spartans 300
By : Farooq Shah
Publish Date : March 11, 2019

WordPress Theme Development in 2019 under #WPSpartans300 Mission. Absolutely Free training step by step. Let’s learn Modern Coding Standards.

This is Task 64 and 7th class of WP Theming Phase and we’re getting started with Core Concepts of WordPress Themes and Templates from scratch. Through out this training, we’ll explore WP Codex step by step. We’ll create a custom theme from ground up.

In this task, we started our journey to be Top WordPress Developers in 2019. My aim is to help, guide and motivate young freelancers so that they could start earning via job market places such as Fiverr and Upwork.

We have covered HTML, CSS, JS, jQuery and PHP Basics. By the end of this training, all Spartans will be in a position to upload their themes not only to WordPress Repo but also to Theme-forest, Creative Market, Mojo Themes and Template Monster etc site.

We’ll follow PHP , HTML, CSS and WordPress standards laid down by the official and core team of WP.

In this 7th class of absolutely free WordPress Training, our main focus was the most famous WordPress Loop aka the heart of WordPress. In this task, tried to explore ‘behind the scenes’ process of loop and WP_Query.

WordPress Loop queries posts, pages or custom content from the database. It’s WordPress’s way of retrieving data and manipulating it to display on the frontend. It’s the default mechanism. It determines what type of content will be presented or displayed for you or any website visitor. Loop can traverse sequentially to display required data or content.

In short :

1) Loop retrieves data.
2) Template Tags set the stage and shape retrieved data to give look and feel as per our html markup, css styles, JavaScript interactivity and any PHP function that we might have. When it comes to ‘how many posts get displayed per page’, the loop query follows instructions that we set from Reading Settings.
3) Loop deals with post titles, categories, authors, post meta data, content, comments, custom post types and custom fields. Content is displayed on any custom page via template tags. Hence, we can customize our loop by creating our very own templates to display the retrieved data and manipulate it accordingly.

Understanding the WordPress Loop empowers WP Developers to control it logically. Learn to control the loop intelligently, and you will be in a position to display the content the way you dream.

In this task, we talked about UCMS:

U stands for Understanding the WordPress Loop.
C stands for Customization or Control.
M stands for Modification or Manipulation.
C stands for Create and Code custom codes

We also discussed about 4 ways to work with the loop.

1: query_posts() – We reset this query with wp_reset_query
2: WP_Query() – This is fundamental class. We create custom loops by creating instances and this loop is reset with wp_reset_postdata
3: get_posts() – This is reset with wp_reset_postdata (same as WP_Query)
4: pre_get_post

We reset main loop with rewind_posts to repeat the loop for second time on same page.

#WPSpartans300 is a mission. When I launched this training session, a great number of young freelancers from Pakistan, India and Bangladesh started taking interest. WOW.

Therefore, I put all my energy to make this journey wonderful and full of success. So far, we have covered HTML Fundamental Training, CSS Basics, JS Concepts , jQuery Crash Course, Bootstrap, Speed and Optimization, SEO 2019 Complete Guide and now here comes WordPress, Spartan.

Let me tell you that without passion and commitment, you won’t be able to be a Rockstar WordPress Developer. It does take a lot of hard work ; however, the end result is awesome.

I will guide you step by step so that you could get results from your WordPress Training Mission. Get ready to excel as a professional developer. It’d be fun and exciting adventure.

300 Spartans will learn to unlock WP Codex. APIs will be the ultimate goal. From PSD to WordPress Conversion to WordPress Based Mobile Apps, Spartans will conquer their fears. 300 Lucky WordPress Developers will enjoy lucrative benefits of successful online projects.

My name is Farooq, and I’m a top rated Upwork Freelancer. I’m offering services to international clients as ‘WordPress and Graphic Design Pro’.